yeah, timezone have a similar problem, ther are half an hour based timezones also...
Well, the time zone can be set in half-hour increments in the "Locale" settings, so that's already taken care of.
I would suggest adding to the language selection in the language app a selection for the timezone and saving the next few changeover dates together with the amount of change together with the locale stuff.
custom.html could use https://momentjs.com/downloads/moment-timezone-with-data-10-year-range.min.js .
Usage: moment.tz.names(); would give all timezone names to select from (or two step selection with moment.tz.countries() and moment.tz.zonesForCountry(String); ), moment.tz.zone(String) gives the zone data for a selected name.
Either upload this zone data directly or use the packed format: https://momentjs.com/downloads/moment-timezone-utils.js provides moment.tz.pack(UnpackedZoneData)
From https://github.com/moment/moment-timezone/blob/d7f687ea598b205806decd83b78d3ea9ad11a569/moment-timezone.js#L48 to https://github.com/moment/moment-timezone/blob/d7f687ea598b205806decd83b78d3ea9ad11a569/moment-timezone.js#L136 is the code needed on the Bangle.js to unpack data.
Sounds good to me. The amount of extra data needed should be tiny as long as the language app pulled out only what was required.
@Gordon: ok, I will start development and provide you with a PR.
I would suggest letting the user select two timezones and add a settings entry to switch between those two for people travelling frequently between two two time zones.
Why not extend Settings with a html page like @DerGuteWolf suggested for locale?
Or more radical integrate Locale in Settings but still create the setting and the locale file on Bangle.
Sorry, old thread. But I guess this never happened?
same question that I asked myself this morning ...
Hi - no, I'm afraid it didn't - but the app loader should have detected that the time was wrong by more than a few minutes and updated when you next connected... Or maybe we don't include timezone in the time check?
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem