Is there a way to override the system time zone in flutter for unit testing?
Quesajo17 opened this issue · 2 comments
Quesajo17 commented
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.