Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alarms scheduled after DST change go off at the wrong time #359

Open
gardenerik opened this issue Oct 28, 2024 · 2 comments
Open

Alarms scheduled after DST change go off at the wrong time #359

gardenerik opened this issue Oct 28, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@gardenerik
Copy link

Describe the bug
When you have alarm set at 8:00 on Mondays and you experience a DST change (CEST->CET in my case) during the week, the alarm goes off at 7:00 on the next Monday. (And then also on 8:00)

To Reproduce
Steps to reproduce the behavior:

  1. Set an recurring alarm at 8:00.
  2. Experience DST change before the alarm.
  3. The alarm goes off at the "original 8:00", which is in the old timezone.
  4. The alarm additionally goes off at the "new 8:00" (presumably because when Chrono checks for the closest 8:00, it is still today, because now it uses the new timezone).

Expected behavior
A single alarm goes off at the expected time (8:00).

Smartphone Information

  • Device: Poco F4
  • OS: Android 13
  • App version 0.6.0-beta1

Additional context
It seems Chrono schedules next alarm using the timezone that is active during the "scheduling" and does not take into consideration that it could have changed in the meantime.

@gardenerik gardenerik added the bug Something isn't working label Oct 28, 2024
@Stricken1670
Copy link

I can reproduce this bug.

@mtalexan
Copy link

mtalexan commented Nov 4, 2024

Same here. I think the alarms might be internally set with the system as relative offsets from when they're saved or the last one occurred, and would need to be updated whenever the clock time changes. I suspect this would also happen if traveling between time zones, or if the phone has been in airplane mode for a while and has to resync to network/carrier time after airplane mode is turned off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants