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

Bug: Event times mangled across daylight savings time changes #1561

Open
dleffler opened this issue Mar 25, 2023 · 0 comments
Open

Bug: Event times mangled across daylight savings time changes #1561

dleffler opened this issue Mar 25, 2023 · 0 comments
Labels
bug code doesn't operate as expected

Comments

@dleffler
Copy link
Collaborator

There is a weird Daylight Saving Time anomaly for recurring events across DST time changes.

Events (including Event Registration?) are based on a single event record with begin and end times set to 'offset from unixtime 0' and also one or more eventdate records with their date set to 'beginning of day'. Therefore each event on the calendar is established by adding the eventdate date with the event begin/end time.

One symptom of this anomaly is that events on the day of the time change will be 1 hour off. One solution is to change the 'beginning of day' to 60 minutes earlier...however this moves the events on the day of the time change to the previous calendar day.

The BEST solution would be to completely revise the entire event system/module using the new PHP DateTIme class/package which is more timezone/daylight-savings friendly...however, there should be a less intensive work-around for this anomaly.

@dleffler dleffler added the bug code doesn't operate as expected label Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug code doesn't operate as expected
Projects
None yet
Development

No branches or pull requests

1 participant