diff --git a/lib/services/local_notification.dart b/lib/services/local_notification.dart index d22cd89..bf2baba 100644 --- a/lib/services/local_notification.dart +++ b/lib/services/local_notification.dart @@ -79,9 +79,7 @@ class LocalNotification { // We have to check if the hike is after 1 hour or not scheduledDate = await tz.TZDateTime.from( - DateTime.fromMillisecondsSinceEpoch(beacon.startsAt!), - tz.local, - ).subtract(Duration(hours: 1)); + DateTime.fromMillisecondsSinceEpoch(beacon.startsAt!),tz.local); await flutterLocalNotificationsPlugin.zonedSchedule( beacon.id.hashCode, 'Reminder: ' + beacon.title! + ' will start in an hour', @@ -109,4 +107,4 @@ class LocalNotification { payload: beacon.id, ); } -} +} \ No newline at end of file