Original:
Hi All,
My code shows a time picker, then stores the selected time in the cloud, to be mirrored to the user later.
Here’s what I don’t understand:
Localization.getCurrentTimeZoneAsync() returns “GMT”
_date.getTimezoneOffset() / 60 = 4 hours! _
Shouldn’t my TZ offset be 0 if my system believes it is in GMT?
in other confusion, since I am in Boston, the TZOffset should be 5 hours, not 4.
_ _
_I looked in the documentation for timezone info, but only found the Localization documentation. _
Can somebody explain this to me?
Thanks!
Update: (I hope this saves somebody a mess of time)
- I learned that GMT !== UTC
- the SIMULATOR is in GMT, but when I run on my device it gets the correct offset
- I tried changing the location of my iOS simulator, but it had NO effect on its perceived TZ
So I can only truly test on an iPhone. Next up is the Android simulator.
Guh