Skip to content

Fix rrule bug regarding daylight saving time#404

Merged
aldabil21 merged 1 commit intoaldabil21:masterfrom
marcauberer:fix/dst-bug
Nov 12, 2024
Merged

Fix rrule bug regarding daylight saving time#404
aldabil21 merged 1 commit intoaldabil21:masterfrom
marcauberer:fix/dst-bug

Conversation

@marcauberer
Copy link
Copy Markdown
Contributor

This pr fixes a bug, that originated from a wrong usage of rrule. The documentation states, that rrule should be fed with UTC dates only (see here).
E.g. in Germany we have the timezone "Europe/Berlin" which is UTC+2 in summer and UTC+1 in winter (as of october 27th). RRule produced something like:

2024-10-25 15:00 [UTC+2]
2024-10-26 15:00 [UTC+2]
2024-10-27 14:00 [UTC+1]
2024-10-28 14:00 [UTC+1]

The expected is:

2024-10-25 15:00 [UTC+2]
2024-10-26 15:00 [UTC+2]
2024-10-27 15:00 [UTC+1]
2024-10-28 15:00 [UTC+1]

This should be fixed with this patch. It was inspired by this GitHub issue reply.

@aldabil21
Copy link
Copy Markdown
Owner

Thank you @marcauberer looks good

@aldabil21 aldabil21 merged commit 73ecd47 into aldabil21:master Nov 12, 2024
@marcauberer marcauberer deleted the fix/dst-bug branch November 12, 2024 17:35
@jackstenglein
Copy link
Copy Markdown
Contributor

@aldabil21 Was this fix ever released? It looks like the last release was on Sept 5?

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.

3 participants