Clocks didn't flip over to BST? #5324
Replies: 1 comment
-
Posted at 2020-03-29 by @MaBecker It is not implemented jet, would be a nice feature to have. Store flag if daylight saving is relevant or not in app Languages and use in clocks. Edit: My workaround is to increase timezone by one in Settings. Posted at 2020-03-29 by PiOfThings Ah ha... nice workaround :-) Posted at 2020-03-29 by PiOfThings I just reinstalled my default apps and it is now showing correct time. Hmm... what did I miss? I did try reboot earlier and syncing with GPS... maybe my code didn't use the GPS info correctly. Locale is showing Posted at 2020-03-29 by AkosLukacs Yepp, I increased the timezone by one (I'm at CET, that's +1 hour. Now it's set to +2 to show the current valid local time) AFAIK GPS is UTC, so no DST change there. DST is kind of crazy and weird, if you want to support all countries. So the best thing I think would be to expand the Posted at 2020-03-29 by DerGuteWolf Well, those change dates can be formulated as rules like in the Olson tz database cf. eg. https://en.wikipedia.org/wiki/Tz_database#Daylight_saving_time_(DST)_rules, https://en.wikipedia.org/wiki/Tz_database#Example_zone_and_rule_lines Posted at 2020-03-30 by @MaBecker Well, no need to care about timezone. AFAIK dst change is always +1 and -1. Timezone: Yes the way locale is implemented it would be easy to include timezones as well, add timezones.js, use %Z for replacement, use locale.tz and timezone selection. But a better place for timezones and dst setting would be during download of app Settings like Languages does. How does that sound? Posted at 2020-03-30 by AkosLukacs @DerGuteWolf wasn't aware of that. That last link looks pretty useful. Since Bangle uses a browser, it already knows the timezone offset: just type And to save flash, memory, and CPU cycles on the Bangle, I think actual calculation should be done in the browser, and only minimal data and logic should live on the Bangle. Posted at 2020-03-30 by @gfwilliams As I understand it, if you click Extending At least now, we have 6 months to think of a good solution :) Posted at 2020-03-30 by DerGuteWolf @MaBecker: I think you underestimate the complexities of international summer time rules. First for the southern hemisphere the changes should be otherway round. Second the change dates vary wildly. Third, not always 1 hour, there are also eg 2 hour changes. @AkosLukacs: I think we could extend the locale html page (using the file from the link for the data) to also offer a timezone selection preset with the browsers current timezome and include in the locale data the next few changeover dates with their offests and names (perhaps in the compact format also available there). We still need to figure how to do the actual change, I think we would need another js file which should be executed at start and contains a setTimeout to do the change on time. I would also include a function to return the current time name. Posted at 2020-03-30 by @MaBecker
Wow, I definitely did, thanks for your clarification.
First I thought firmware is a good place, so all devices can benefit from this, but why not bootloader, other board can have a bootloader too :) . Posted at 2020-03-30 by Raik The time on my watch keeps switching back and forth an hour which is really confusing. In Locale Time Zone is set 2. I have not figured out yet what is causing this. Posted at 2020-03-30 by @gfwilliams Hmm - I guess gadgetbridge could be the issue... It's possible it is sending time update commands which keep changing the time zone? Posted at 2020-03-30 by Raik Ah yes, it is definitely GadgetBridge. I switched GB off, then went to Set Time in Settings. It showed the correct time, long press BTN3 back to clock. Clock displays the correct time. Activate GB again, clock reset to an hour earlier on refresh. But I don't see any code in the GB widget that would set the time? EDIT: I think I know whats going on. As I said, I set the Time Zone on the Bangle to +2 to compensate for daylight saving but GB is sending the current time zone, so +1 (even though I disabled the setting for syncing the time in GB). EDIT 2: But the again GB should send the correct time with TZ +1. I'm confused... Posted at 2020-03-30 by DerGuteWolf Regarding setTimeout: alarm.js uses clearInterval(); (ie stopping all setTimeout/setInterval), I am not sure if this would mean that an alarm would stop a setTimeout for daylight change? Posted at 2020-03-30 by @gfwilliams
Hmm. Looks like this is a bug in the Bangle.js plugin for gadgetbridge then. It does it whenever it connects - I guess it needs to check Gadgetbridge settings: https://codeberg.org/Freeyourgadget/Gadgetbridge/src/branch/master/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/banglejs/BangleJSDeviceSupport.java#L237
It would when active, but then as soon as you loaded a new app it'd be fine. Posted at 2020-03-30 by Raik
If only someone could fix this and build a new version.... 8-) Posted at 2020-03-31 by @gfwilliams I'll try and sort out a fix for Gadgetbridge. So it looks like there are three issues here:
Posted at 2020-03-31 by Raik So according to this: https://www.tutorialspoint.com/java/util/java_util_timezone.htm
So getRawOffset() should give (for my timezone) +1 right. But because of daylight saving it should be +2. So there is another method getDSTSaving()
Maybe a simple RawOffset+DSTSavings is enough?
But despite that the first really helpful fix would be for GB not setting the time at all if disabled in GB settings. Posted at 2020-04-01 by Raik I saw you just fixed the bug in GadgetBridge, very nice! Do you know when/how often they will build a new version? Posted at 2020-04-02 by @gfwilliams Honestly I don't - I think it's very much up to them. I'm experimenting with maybe allowing Google Maps notifications through as well, so we can get proper navigation Posted at 2020-04-02 by Raik Ok thanks. I built a debug version myself until an official release comes out and can confirm that it works. Posted at 2020-04-05 by Old_account About daylight savings: wouldn't it just be easiest to have a toggle in settings "Daylight savings: On/Off"? When enabled it just adds +1 hour to the current time. That way you won't have to mess with your time zone, which in turn breaks other stuff (like Gadgetbridge time sync)... Posted at 2020-04-05 by DerGuteWolf @Johan_O: Problem ist that not everywhere on the globe DST ist +1 hour Posted at 2020-04-05 by Old_account Are there enough countries that deviate from +1 for there to be a big problem? I've never looked closer at that particular detail. Shouldn't be too hard to implement a counter setting similar to what is already available for the time zone though. Posted at 2020-04-05 by DerGuteWolf yeah, timezone have a similar problem, ther are half an hour based timezones also... Posted at 2020-04-05 by Old_account Well, the time zone can be set in half-hour increments in the "Locale" settings, so that's already taken care of. Posted at 2020-04-06 by DerGuteWolf 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. Posted at 2020-04-07 by @gfwilliams 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. Posted at 2020-04-07 by DerGuteWolf @gfwilliams: ok, I will start development and provide you with a PR. Posted at 2020-04-07 by @MaBecker 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. Posted at 2022-03-27 by user140377 Sorry, old thread. But I guess this never happened? Posted at 2022-03-27 by uname same question that I asked myself this morning ... Posted at 2022-03-28 by @gfwilliams 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? Posted at 2022-10-23 by user140377 Afaik most of Europe will return to normal time in the next weekend. So I'm going to try https://banglejs.com/apps/?id=widdst for automatic adjustment. For some reason I don't know the widget is BJS2 only. Posted at 2022-10-26 by @gfwilliams Good point - it'd be great to see if it works ok for everyone
I guess that's all it was tested on, but as you say I see no reason not to include it. I've just pushed a change to the dev app loader Posted at 2022-10-27 by Max_S The U.S. Senate passed the bill to switch U.S. time to DST and keep it there permanent. Yes!! We won't have to change clocks anymore. Not enacted yet, buy my fingers crossed. It's bad enough with 4 time zones ... let alone the changes twice a year. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-29 by PiOfThings
Is it me (my app) or did none of the Clock Apps (in UK) switch over to BST. Haven't tried a satellite resync yet.
Beta Was this translation helpful? Give feedback.
All reactions