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 Savings Time switch fix #112

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

wishdev
Copy link

@wishdev wishdev commented Jan 6, 2025

The period calculator fails to properly handle the daylight savings -> standard time fallback properly for the :daily period.

Adds tests for various scenarios (including non-standard offset amounts) and corrects the failed calculation.

@wishdev
Copy link
Author

wishdev commented Jan 10, 2025

I redid this patch and I think simplified the calculations by removing all the time add/subtracts and just used the Date class instead. The calculations appear to be more stable using that class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant