03-11-2018 12:18
03-11-2018 12:18
Hello,
I have been working on a clock face that lists the current time zone (as in: EST, MDT). I am encountering 2 problems.
1) The getTimezoneOffset only returns the local timezone offset. I am unable to get it to look at a different date's offset.
let winter = new Date(2018, 0, 1); let summer = new Date(2018, 6, 1);
Both times return the same value.
2) I tried to use the Intl.DateTimeFormat function. This appears to be unsupported.
let myOptions = {timeZoneName : 'Short'};
let myInt = new Intl.DateTimeFormat('en-US', myOptions).format(date);
Any words of wisdom?
Best Answer03-19-2018 23:27
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
03-19-2018 23:27
The Device only supports ES 5.1 JavaScript, you could utilize the JavaScript environment in the Companion API which does support what you need, then send that to the device via the the Messaging API.
Best Answer