Skip to content

fix: make export use correct time zone#85

Merged
condyl merged 1 commit intomasterfrom
cb/fix-daylight-savings-export
Mar 8, 2026
Merged

fix: make export use correct time zone#85
condyl merged 1 commit intomasterfrom
cb/fix-daylight-savings-export

Conversation

@condyl
Copy link
Copy Markdown
Collaborator

@condyl condyl commented Mar 8, 2026

This pull request updates the calendar export functionality to generate more accurate and standards-compliant ICS files, with a particular focus on correct timezone handling for events. The changes ensure that exported calendar events use the "America/Toronto" timezone explicitly, include proper timezone definitions, and generate timestamps in the correct format for both local and UTC times.

ICS file format and timezone improvements:

  • Added a detailed VTIMEZONE definition for "America/Toronto" to the calendar export, ensuring compatibility with calendar applications and correct handling of daylight saving time.
  • Introduced the ICS_TIMEZONE constant and updated event start/end times to use TZID=America/Toronto and generate timestamps in the specified timezone, improving the accuracy of event times in exported calendars.
  • Changed the recurrence rule's UNTIL date and the event DTSTAMP to use UTC-formatted timestamps for compliance with ICS standards.

Pink-ish color: new
Yellow: old (shifted forwards an hour or completely messed up with the 3 hour classes
image

@condyl condyl merged commit 8e42f3b into master Mar 8, 2026
3 checks passed
@condyl condyl deleted the cb/fix-daylight-savings-export branch March 8, 2026 16:41
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