07-30-2021 08:15
07-30-2021 08:15
I've been banging my head against the wall trying to figure out why the time on my clockface in Fitbit Studio is one hour behind what the actual time should be.
The time is wrong regardless of whether I run the app in the simulator or build it to my Versa 3 device. I'm using the 6.0 SDK.
Any ideas as to what could be the problem?
Here is the code for my clockface:
// Update the clock every minute
clock.granularity = "minutes";
clock.addEventListener("tick", (evt) => {
let today = evt.date;
let hours = today.getHours();
timeHandle.text = evt.date.toTimeString().slice(0, -4);
console.log(evt.date.toTimeString());
});
Thanks a lot!