From 33969cf951faa81b9d99b355288df655b28618e3 Mon Sep 17 00:00:00 2001 From: vipin kumar <143318563+vkprogrammer-001@users.noreply.github.com> Date: Sun, 18 Feb 2024 02:12:43 +0530 Subject: [PATCH] Update local_notification.dart --- lib/services/local_notification.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/local_notification.dart b/lib/services/local_notification.dart index 7605061..d22cd89 100644 --- a/lib/services/local_notification.dart +++ b/lib/services/local_notification.dart @@ -81,7 +81,7 @@ class LocalNotification { scheduledDate = await tz.TZDateTime.from( DateTime.fromMillisecondsSinceEpoch(beacon.startsAt!), tz.local, - ); + ).subtract(Duration(hours: 1)); await flutterLocalNotificationsPlugin.zonedSchedule( beacon.id.hashCode, 'Reminder: ' + beacon.title! + ' will start in an hour',