Outlook ICS subscriptions imported with incorrect timezone (Windows TZID treated as UTC)
-
When subscribing to an Outlook/Office 365 ICS calendar in the Cloudron Calendar app, timed events appear one hour late in winter and two hours late in summer.
Installed package: cloudron/io.cloudron.calendar:202611171702090000
Feed format
The Outlook feed contains a VTIMEZONE definition with standard/daylight-saving rules and uses a Windows timezone identifier:
DTSTART;TZID=W. Europe Standard Time:20261126T110000 DTEND;TZID=W. Europe Standard Time:20261126T115000Expected: 11:00–11:50 local time in Switzerland.
Actual: 12:00–12:50 local time.Cause
In src/ical.js, resolveIcsTzidParam() validates the TZID using:
Intl.DateTimeFormat(undefined, { timeZone: s });Node.js rejects W. Europe Standard Time because it is a Windows timezone identifier, not an IANA identifier. The catch block silently falls back to UTC, while retaining the original wall-clock time.
The feed’s VTIMEZONE definition does not appear to be used to resolve this identifier.
Verified workaround
Mapping W. Europe Standard Time to Europe/Zurich before validation and resynchronizing the subscriptions corrected the events.
Tests confirmed correct winter/summer offsets, recurrence exclusions and overrides, and unchanged handling of explicit UTC, IANA timezones and all-day events.
Could the importer support Windows-to-IANA timezone mapping, or resolve timezone identifiers using the supplied VTIMEZONE definitions, rather than silently treating them as UTC?
-
N nebulon marked this topic as a question
-
-
J james has marked this topic as solved
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login