summaryrefslogtreecommitdiff
path: root/app/src/main/java/se/leap
diff options
context:
space:
mode:
authorJanak Amarasena <janakamarasena@gmail.com>2018-06-26 22:53:43 +0530
committerJanak Amarasena <janakamarasena@gmail.com>2018-06-26 22:53:43 +0530
commit9cbcd3bad1f0aa33b7c08dc18f7065a126af7eb5 (patch)
tree9333902ebefc1597ba3773bdd5a6b0f6194f5610 /app/src/main/java/se/leap
parentb8e562d03695f5a73809feb0751a9c296c9c5fa4 (diff)
Minor update according to received feedback
Diffstat (limited to 'app/src/main/java/se/leap')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/utils/DateHelper.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/utils/DateHelper.java b/app/src/main/java/se/leap/bitmaskclient/utils/DateHelper.java
index a8649132..523c8c4c 100644
--- a/app/src/main/java/se/leap/bitmaskclient/utils/DateHelper.java
+++ b/app/src/main/java/se/leap/bitmaskclient/utils/DateHelper.java
@@ -16,8 +16,7 @@ public class DateHelper {
public static long getDateDiffToCurrentDateInDays(String startDate) throws ParseException {
SimpleDateFormat sdf = new SimpleDateFormat(DATE_PATTERN, Locale.US);
- Date lastDate;
- lastDate = sdf.parse(startDate);
+ Date lastDate = sdf.parse(startDate);
Date currentDate = new Date();
return (currentDate.getTime() - lastDate.getTime()) / ONE_DAY;
}