Repository navigation
fix(calendar): prefix TZID with '/' to use globally-defined IANA timezone identifiers - #60588
miaulalala wants to merge 1 commit into
Conversation
…zone identifiers Without a leading '/', a TZID like 'Europe/Berlin' in DTSTART/DTEND requires an accompanying VTIMEZONE component (RFC 5545 §3.2.19). CalendarEventBuilder never emits VTIMEZONE, so Sabre's iTIP broker had nothing to copy into invite emails — leaving recipients with a dangling TZID reference that clients like Grommunio misinterpret as an unknown timezone. Prepending '/' makes the TZID a globally-defined IANA identifier, which is valid without VTIMEZONE and is universally understood. UTC datetimes (Z suffix, no TZID) are unaffected. AI-Assisted-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Anna Larch <anna@nextcloud.com>
4d254ba to
e1d05d0
Compare
|
/backport to stable34 |
|
/backport to stable33 |
|
/backport to stable32 |
|
Once sabre-io/vobject#757 is fixed and the updated Sabre VObject version is vendored into Nextcloud, this PR can be reverted — the |
|
It would be nice if someone made sure this doesn't cause regressions in other popular clients that don't understand correctly globally-defined timezone identifiers. In any case, the spec says |
|
Closing this pull request as it has been in draft state without any activity for more than six months. |
Summary
CalendarEventBuilder::toIcs()emitsDTSTART;TZID=Europe/Berlin:...but never includes aVTIMEZONEcomponentVTIMEZONEcomponents into invite emails — so without one, attendees receive an ICS with a dangling TZID referenceRFC 5545 §3.2.19 allows a leading
/on a TZID to indicate a globally-defined IANA identifier, which is valid without aVTIMEZONEblock. This PR applies that prefix toDTSTARTandDTENDbefore serialisation. UTC datetimes (Z-suffix, no TZID) are unaffected.Test plan
php vendor-bin/phpunit/vendor/phpunit/phpunit/phpunit --no-coverage -c tests/phpunit-autotest.xml tests/lib/Calendar/CalendarEventBuilderTest.php— all 8 tests passtestToIcsWithTimezoneassertsDTSTART;TZID=/Europe/Berlin:, noBEGIN:VTIMEZONE, and matches the full fixturetestToIcsWithUtcIsUnchangedasserts UTC datetimes are not alteredFixes: nextcloud/spreed#18039 (workaround on the Talk side is in nextcloud/spreed#XXXX)
🤖 Generated with Claude Code