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

Daylight saving fix #3

Merged
merged 8 commits into from
Oct 14, 2023
Merged

Daylight saving fix #3

merged 8 commits into from
Oct 14, 2023

Conversation

therefromhere
Copy link
Owner

I thought I was hitting a bug in my date calculation (fixed before refactor as db10f5e), but I'm not sure I am now.

Astral now uses the same logic as db10f5e for calculation of current date, and my logs seem to be showing it calculating the correct times today.

But I think possibly either the Sure server is also adjusting curfew times, or the app is?
I think I had the bug where the day after the clocks change it calculates the wrong curfews, but can't reproduce now. Notification from 3:30am NZ time says "18:18 and 07:06", but my API logs at the same time say 19:18 & 07:06 ??

Clocks changed 2am -> 3am

@therefromhere therefromhere marked this pull request as ready for review October 14, 2023 08:55
@therefromhere therefromhere merged commit f812d82 into master Oct 14, 2023
1 check passed
@therefromhere therefromhere deleted the daylight_saving_fix branch October 14, 2023 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant