From 87c18751cbfa25b68b1ed5f72f7ab8357465acbc Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Fri, 18 Jan 2019 17:12:36 -0600 Subject: [PATCH] Use start of minute for checking future time --- .../main/java/org/tasks/notifications/NotificationManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/tasks/notifications/NotificationManager.java b/app/src/main/java/org/tasks/notifications/NotificationManager.java index 95e04c2d2..054638661 100644 --- a/app/src/main/java/org/tasks/notifications/NotificationManager.java +++ b/app/src/main/java/org/tasks/notifications/NotificationManager.java @@ -368,7 +368,8 @@ public class NotificationManager { // task due date was changed, but alarm wasn't rescheduled boolean dueInFuture = - task.hasDueTime() && task.getDueDate() > DateUtilities.now() + task.hasDueTime() + && new DateTime(task.getDueDate()).startOfMinute().getMillis() > DateUtilities.now() || !task.hasDueTime() && task.getDueDate() - DateUtilities.now() > DateUtilities.ONE_DAY; if ((type == ReminderService.TYPE_DUE || type == ReminderService.TYPE_OVERDUE)