Skip to content

Accept UTC starts in timezone-aware RRULE schedules - #28

Merged
stevebauman merged 1 commit into
masterfrom
fix/utc-rrule-start
Oct 24, 2026
Merged

stevebauman merged 1 commit into
masterfrom
fix/utc-rrule-start

Conversation

@stevebauman

Copy link
Copy Markdown
Member

An RruleSchedule with a UTC start such as DTSTART=20260501T090000Z throws when a timezone is also configured. The formatter adds TZID to the already-UTC value, producing an invalid combination that php-rrule rejects.

Only add TZID to local start values. Explicit UTC starts keep their original meaning, including after the schedule is reloaded or its timezone changes.

Validated with the full Pest suite (149 tests) and Pint.

Fixes #22.

@stevebauman
stevebauman merged commit 09190c2 into master Oct 24, 2026
7 checks passed
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.

Accept UTC DTSTART values when an RRULE schedule has a timezone

1 participant