03-19-2018
17:59
- last edited on
08-19-2018
12:25
by
SantiR
03-19-2018
17:59
- last edited on
08-19-2018
12:25
by
SantiR
Hello,
I have been using the Flashring clockface for a while now and I love it. After updating to Fitbit OS 2.0, the date format seems to have switched from MM/DD/YYYY to DD/MM/YYYY. Has anyone else noticed this?
I tried some troubleshooting with the "Chronograph" clockface by Fitbit and it displays MM/DD. Is the date format based on a location setting in the user profile, or is it hard coded into the clockface?
Thanks!
Moderator Edit: Added Labels
Answered! Go to the Best Answer.
04-21-2018 02:38
04-21-2018 02:38
Let me please explain this issue. The Fitbit sdk does not support javascripts toLocaleDateString(). That's why I had to write my own solution for localisation, which was quite a lot of work and it is now used by some other clockfaces, since I published my code as opensource.
With the update to Fitbot OS2.0, there was a change in the API, I guess, and the localisation stopped working as expected. I tried to solve the issue with a workaround, which broke localisation again for some regions. Since I'm quite busy at work at the moment, It will take some time to fix it again. Please be patient! I'm not working for Fitbit, I'm not a professional JavaScript-developer (I need other languages for my job), I have a full-time job and a family! But I promise to investigate the issues once again.
04-22-2018 03:23
04-22-2018 03:23
Thank you for your feedback and future investigation into this issue.
04-23-2018 07:35
04-23-2018 07:35
A new update is available. Please test it and give me a feedback if everything works!
04-23-2018 08:56
04-23-2018 08:56
No luck I’m affraid mate. Still displaying MM/DD/YYYY.
04-23-2018 13:19
04-23-2018 13:19
Hm...
This should only be the case if the users locale is set to "en-us". Are you sure that the new version of the clockface is installed and that your locale is not set to "en-us"?
04-23-2018 13:47
04-23-2018 13:47
04-23-2018 14:25
04-23-2018 14:25
04-23-2018 14:27
04-23-2018 14:27
Definitely installed and updated. All settings look correct. Just to make sure I’m not missing anything obvious, where should I be checking for location settings?
04-23-2018 14:33
04-23-2018 14:33
Don’t worry about it actually mate, more important things in life that sorting stuff out for strangers on the internet! Cheers anyway!
04-23-2018 21:44
04-23-2018 21:44
@Reptilejch: I'm a teacher for math and computer science and besides I'm developing software for the school's administration.
@AJS149: I don't remember where you can set the locale, sorry
04-28-2018 20:07
04-28-2018 20:07
"I tried some troubleshooting with the "Chronograph" clockface by Fitbit and it displays MM/DD"
That may not be the best troubleshooting activity. It appears that chronograph is hard coded to MM/DD.
p
05-03-2018 06:56
05-03-2018 06:56
05-03-2018 07:23
05-03-2018 07:23
You have to use the PowerAPI: https://dev.fitbit.com/build/reference/device-api/power/
You can take a look into the code of my ClearBeam-watchface if you like: https://gitlab.com/private-software/fitbit-clearbeam-watchface.git
06-12-2018 20:57
06-12-2018 20:57
Hi Sam,
sorry to bring this one back from the dead - I had a look into your code, and I think the issue is that your localization string isn't choosing en-"other" so for example in Australia, we are en_au rather than en_us.
I'm not entirely sure how your subroutine works, as I'm an infrastructure guy, not coder, but pretty confident that this is where the date sequence issue is arising from...
I tried modifying a pull from GitHub, but I was missing something as I couldn't get it to change.
I BELIEVE Line 132 should look something like this:
"if ( prefix == "en" || prefix == "au" || prefix == "gb" || prefix == "de"" ) {
Melbourne, Australia 🙂
Fitbit History: Flex, Charge HR, Charge 2, Ionic06-13-2018 13:03
06-13-2018 13:03
Hey Andrew,
sorry, but this
"if ( prefix == "en" || prefix == "au" || prefix == "gb" || prefix == "de"" ) {
will not work or fix the problem. I will try to fix the issue. Please be patient.
All the best,
Sam
09-21-2018 10:35
09-21-2018 10:35
I'm having the same issue, it's presenting format "MM/DD/YYYY" and in my location (Portugal) I'm expecting "DD/MM/YYYY". Is it possible to solve this by letting the user choose the format wanted in the Settings area of the clock face? That way this issue is solved forever, no matter the "location".
Thanks a lot for the amazing clock face btw 😄
09-21-2018 16:27
09-21-2018 16:27
Yes and no @carlostorrao, their is no setting on Fitbit, but several third party clock faces do have this ootion. With 500 or do faces im not sure which ones, a search of this board should help since this subject comes up reqularly, and specific faces have been mentioned.
09-22-2018 00:03
09-22-2018 00:03
This will come with the next update. It is already implemented in my clockface Flashring2. Take a look, it might be an alternative if you don't want to wait for the update.