Skip to content

Feature/handle change time event #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 6, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
modified pending notifications
  • Loading branch information
Yasminehassan26 committed Oct 6, 2022
commit 94bf4159405b3cac5e4f103529c7cbd5792b562b
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,7 @@ private void deletePreviousNotifications(ArrayList<NotificationDetails> schedule
ZoneId zoneId = ZoneId.of(notificationDetails.timeZoneName);
ZonedDateTime scheduledDateTime =
ZonedDateTime.of(LocalDateTime.parse(notificationDetails.scheduledDateTime), zoneId);
ZonedDateTime now = ZonedDateTime.now(zoneId);
ZonedDateTime now = ZonedDateTime.now(zoneId).minusMinutes(2);
if (scheduledDateTime.isBefore(now)) {
it.remove();
cancelNotification(notificationDetails.id,notificationDetails.tag);
Expand Down