forked from localvoid/timezone
-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Description
I have been using this package from a longtime. But in timezone Asia/Beirut a frequent issue happens where time shows 3 hrs behind when using tz.TZDateTime.now(tz.local); or any other date time related operation which uses local timezone.
I am explicitly setting tz.setLocalLocation to required location Asia/Beirut
For my example throughout package is imported like this: import 'package:timezone/timezone.dart' as tz;
Timezone library is initialized twice in app. Once in main and again in fcm_background_handler.dart for background notifications.
Update: It seems when timezone is initialized in fcm background callback the app local changes for ios only. For android the behavior is not seen at all
Metadata
Metadata
Assignees
Labels
No labels