Skip to content

fix: support RDATE for events with explicit future dates - #2

Merged
runely merged 1 commit into
runely:mainfrom
KristjanESPERANTO:rdate-support
Jun 2, 2026
Merged

fix: support RDATE for events with explicit future dates#2
runely merged 1 commit into
runely:mainfrom
KristjanESPERANTO:rdate-support

Conversation

@KristjanESPERANTO

Copy link
Copy Markdown
Contributor

An event can have DTSTART/DTEND in the past but still list explicit future occurrences via RDATE. Previously these events were silently dropped because only DTEND was checked:

BEGIN:VEVENT
DTSTART:20200101T100000Z
DTEND:20200101T110000Z
RDATE:20300101T100000Z,20310101T100000Z
END:VEVENT

This PR adds RDATE handling that mirrors the existing RRULE behaviour: each comma-separated date is parsed, and if any falls within [now, max] the event is kept.

An event may have DTSTART/DTEND in the past but RDATE entries
listing explicit future occurrences. Previously such events were
silently dropped because only DTEND was checked.

When an RDATE line is found, parse each comma-separated date value.
If any date falls within [now, max], keep the event - mirroring
the existing RRULE behaviour.
@runely
runely merged commit 0bb7e0b into runely:main Jun 2, 2026
1 check passed
@KristjanESPERANTO
KristjanESPERANTO deleted the rdate-support branch June 2, 2026 20:14
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.

2 participants