- macOS
- SDK 8.1.1
- fr955 (simulator). haven't tried a real device, although I assume this works properly on real devices
--
See comment for screenshot of code, since the forum won't let me post the actual code.
Actual Output:
0:1747762698 [exactly 4 hours from when the sim started - ~17:38 in UTC, 13:38 in local time zone]
1:1747762699 [4 hours and 1 second from when the sim started]
2:1747762700 ...
3:1747762701
4:1747762702
5:1747762703
6:1747762704
(Note that my current timezone is UTC-4)
(the output stays stable until the sim restarts.)
Expected Output:
0: [value corresponding to midnight local time, for some day - maybe today or yesterday?]
1: [value corresponding to midnight local time, for a different day - probably the day before 0]
...
https://forums.garmin.com/developer/connect-iq/f/discussion/351471/possible-startofday-issue-on-simulator/