05-16-2020 09:48 - edited 05-17-2020 03:14
05-16-2020 09:48 - edited 05-17-2020 03:14
Expected
The first tick when changing clock.granularity from minutes to seconds fires on next second and reports the correct seconds value in event.date.getSeconds().
Actual
The first tick event event.date.getSeconds() reports 0. The second tick event reports the actual, correct seconds.
Confirmed in Fitbit OS Simulator and Fitbit Versa 2 version 70.7.21. Bug only present when Always On Display is not enabled.
See video and example code that prints the seconds value via console.log and updates the text on screen at https://github.com/jeremiahlee/fitbit-first-tick-seconds-bug