Skip to content

Ignore TZID when parsing time with UTC indicator - #11250

Open
lakshay-2411 wants to merge 1 commit into
tutao:masterfrom
lakshay-2411:11248-redundant-tzid-utc
Open

Ignore TZID when parsing time with UTC indicator#11250
lakshay-2411 wants to merge 1 commit into
tutao:masterfrom
lakshay-2411:11248-redundant-tzid-utc

Conversation

@lakshay-2411

Copy link
Copy Markdown

Fixes #11248

parseTime threw a ParserError when a date-time value had both a TZID parameter and a Z (UTC) suffix, which broke entire calendar subscriptions for non-compliant feeds like F1TV (DTSTART;TZID=Etc/GMT:20260725T121500Z).

Per RFC 5545 the Z form is authoritatively UTC, so the TZID is now ignored (with a console warning), matching the zone precedence already used in parseRecurrenceId. The edge-case test asserting the throw was updated to assert the new behavior; genuinely invalid timezones still throw (#11022 behavior preserved).

@ganthern

Copy link
Copy Markdown
Contributor

Thank you!

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.

Handle redundant time zone info UTC and timestamp with Z at the end

2 participants