From 9cbcd3bad1f0aa33b7c08dc18f7065a126af7eb5 Mon Sep 17 00:00:00 2001 From: Janak Amarasena Date: Tue, 26 Jun 2018 22:53:43 +0530 Subject: Minor update according to received feedback --- app/src/main/java/se/leap/bitmaskclient/utils/DateHelper.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app') 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; } -- cgit v1.2.3