If i use set location with value format as Etc/GMT like this:
tsetLocalLocation(getLocation('Etc/GMT-8'));
final TZDateTime tzDateTimeNow = TZDateTime.now(local);
then, by trying to acess timezome offset like this
tzDateTimeNow.timeZoneOffset.inHours
It shows value of 8, instead of -8. In other words, there is no negative numbers. But if i use location like, for ex. Canada/Atlantic -
it gives desired -8 hours.
If i use set location with value format as Etc/GMT like this:
then, by trying to acess timezome offset like this
It shows value of 8, instead of -8. In other words, there is no negative numbers. But if i use location like, for ex. Canada/Atlantic - it gives desired -8 hours.