Repository navigation
fix(event): use the event time zone for all-day EXDATE - #822
Merged
sebbo2002 merged 1 commit intoNov 26, 2026
Merged
Conversation
DTSTART, DTEND, UNTIL and RECURRENCE-ID of an all-day event use the event's time zone, but EXDATE used the calendar's one. When the event has its own time zone, the excluded date could be one day off, so the occurrence was not excluded.
Contributor
|
🎉 This PR is included in version 11.1.5-develop.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
About this Pull Request
For an all-day event,
DTSTART,DTEND,UNTILandRECURRENCE-IDuse the event's time zone (this.timezone()), butEXDATEuses the calendar's time zone. When the event has its own time zone, the excluded day can be one day off, so the occurrence is not excluded.Actual:
Expected:
EXDATE;VALUE=DATE:20261201, the same day asDTSTART, because the same value is passed for both. With python-dateutilrrulestr(..., forceset=True)the actual output gives 3 occurrences (2026-12-01, 12-02, 12-03), so nothing is excluded. The expected output gives 2 (12-02, 12-03).A plain
Dateshows the same: on a machine in IST,startandexclude=new Date('2026-12-01T00:00:00')withtimezone: 'Asia/Tokyo'giveDTSTART;VALUE=DATE:20261201andEXDATE;VALUE=DATE:20261130.EXDATEusesthis.timezone(), likeDTSTARTandUNTIL(fix(event): use DATE value for RRULE UNTIL and RECURRENCE-ID on all-day events #815).this.timezone()falls back to the calendar time zone, so events without their own time zone are not changed.test/event.tsfails before the fix (EXDATE;VALUE=DATE:20261130) and passes after.Pull Request Checklist
npm run lintto double checknpm run testto run the unit tests andnpm run coverageto generate a coverage report