You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Date class that only stores a DateTime, but is supposed to convert it to the current date (regardless of time zone) at 00:00:0000 in UTC.
I would like unit tests to make sure it works on both ends of the UTC timezone, to make sure it is working properly. Is there a way to update the system timezone in flutter to do this? It seems like the setLocalLocation(X) method doesn't work in dart.
The text was updated successfully, but these errors were encountered:
You can just override the location using tz.setLocalLocation(tz.getLocation('Europe/Berlin')); which is exactly what I'm doing in my tests. I don't know why it wouldn't work for you.
I have a
Date
class that only stores aDateTime
, but is supposed to convert it to the current date (regardless of time zone) at 00:00:0000 in UTC.I would like unit tests to make sure it works on both ends of the UTC timezone, to make sure it is working properly. Is there a way to update the system timezone in flutter to do this? It seems like the setLocalLocation(X) method doesn't work in dart.
The text was updated successfully, but these errors were encountered: