Repository navigation
Conversation
rruleset.rdate() and rruleset.exdate() accepted bare datetime.date objects without complaint but raised TypeError at iteration time, while rrule converts a date dtstart to midnight. RFC 5545 permits DATE values for RDATE and EXDATE, so parsing real iCalendar data hits this. Both methods now normalize a bare date to midnight, the same conversion rrule applies to dtstart. Assisted-by: ZCode agent:GLM-5.3-Flash
|
CI triage: Both recent runs on this branch fail only in
So the failure appeared between 2026-11-01 and 2026-11-04 and correlates with the free-threaded 3.14.10 / 3.15 pre-release interpreter builds or a runner image update, not with this diff. Posting for transparency — nothing in this PR touches |
|
Note on CI: the macOS jobs in the last few runs were cancelled by the |
Summary of changes
rruleset.rdate()andrruleset.exdate()accepted baredatetime.dateobjects without complaint but raised
TypeError: can't compare datetime.datetime to datetime.dateat iterationtime, while
rrulesilently converts a datedtstartto midnight. Parsingreal iCalendar data hits this because RFC 5545 permits DATE values for RDATE
and EXDATE (§3.8.5.1).
Both methods now normalize a bare date to midnight, the same conversion
rruleapplies todtstart. Per RFC 5545 §3.8.5.1 exclusion is by exactDATE-TIME value, so a DATE-form EXDATE excludes the midnight instance of a
DATE-form DTSTART recurrence set — the common all-day-event case.
Open question for maintainers: #275 also discusses whether a DATE-form
EXDATE should exclude a whole day regardless of time. RFC 5545 §3.8.5.1
specifies exclusion by exact DATE-TIME value, so this PR follows that; a
whole-day reading would need separate tracking of DATE-form values and is
not attempted here.
Closes #275
Pull Request Checklist
Assisted-by: ZCode agent:GLM-5.3-Flash