Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Offical apps | Community apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Calendar
  3. Outlook ICS subscriptions imported with incorrect timezone (Windows TZID treated as UTC)

Outlook ICS subscriptions imported with incorrect timezone (Windows TZID treated as UTC)

Scheduled Pinned Locked Moved Solved Calendar
2 Posts 2 Posters 66 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P
    P
    pathab
    App Dev
    wrote last edited by pathab
    #1

    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:20261126T115000
    

    Expected: 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?

    1 Reply Last reply
    2
    • nebulonN nebulon marked this topic as a question
    • nebulonN
      nebulonN
      nebulon
      Staff
      wrote last edited by
      #2

      thanks for the report, this should be fixed now in the just released package

      1 Reply Last reply
      2
      • jamesJ 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
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Bookmarks
      • Search