I am trying to test my app's behaviour in different time zones, but have hit a wall when attempting to simulate a different time zone.
I'm in Sydney with a time zone of UTC + 10.
When I change the time zone in my watch using the phone (iPhone) using Settings>General>time Zone > Eucla. and then use GCM to Sync , my watch face correctly shows the time in Eucla (SA, Aust, an odd time zone or UTC + 8:45).
However, my app, which displays the time using the GPS timestamp using
Gregorian.info((new Time.Moment(timeSecs )), Time.FORMAT_SHORT);
still shows the time in UTC + 10
There appears to be a facility in the watch to modify time zones, but it doesn't appear to work.
Watch: Menu>Clock>Alt.Time Zones (shows one entry:US-Pacific) Zone>presents a limited list of time zones, but to (unsurprisingly) Eucla UTC+8:48)
If I select a random entry: Kabul UCT+04:30,the next option is Rename Zone to which I respond No.
Kabul is now in my list of Alt. Time zones, but there is no way to select it. The Start button takes me to the Rename Zone option.
So my Q's are:
- where does Toybox.Time.Gregorian determine the UTC time offset? and
- How can I simulate running my GPS app in a different time zone?