Skip to content

Commit

Permalink
[fix] Instance of 'TZDateTime'
Browse files Browse the repository at this point in the history
vkprogrammer-001 committed Feb 15, 2024
1 parent 4a42d6b commit d5101b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/services/local_notification.dart
Original file line number Diff line number Diff line change
@@ -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',

0 comments on commit d5101b1

Please sign in to comment.