Open JonasJW opened 2 months ago
In my production app I get the exception Location with the name "CDT" doesn't exist. I also gotten exceptions for Same for EDT and PST. Also I have gotten exceptions for Location with the name "-03" doesn't exist.
Location with the name "CDT" doesn't exist
EDT
PST
Location with the name "-03" doesn't exist
This is my code:
final currentTimeZone = DateTime.now().timeZoneName; tz.Location location = tz.getLocation(currentTimeZone); tz.TZDateTime tzDate = tz.TZDateTime.from(date, location);
I'm omporting 'package:timezone/data/latest_all.dart' as tz; and 'package:timezone/timezone.dart' as tz;
'package:timezone/data/latest_all.dart' as tz;
'package:timezone/timezone.dart' as tz;
CDT and PST seem to be daylight saving timezones.
Is there any recommended way on how to handle these cases?
Same issue for me.
In my production app I get the exception
Location with the name "CDT" doesn't exist
. I also gotten exceptions for Same forEDT
andPST
. Also I have gotten exceptions forLocation with the name "-03" doesn't exist
.This is my code:
I'm omporting
'package:timezone/data/latest_all.dart' as tz;
and'package:timezone/timezone.dart' as tz;
CDT and PST seem to be daylight saving timezones.
Is there any recommended way on how to handle these cases?