Calendar: Importing a .ics with different timezone fails to adjust

Hi, first post here I think. It is not about the system as a whole, only the calendar app, so I hope this is the right place.

Nextcloud version (eg, 20.0.5): Nextcloud Hub 3 (25.0.5)
Operating system and version (eg, Ubuntu 20.04): Debiaon 9.3 (yes, I know), snap
Apache or nginx version (eg, Apache 2.4.25): (how do I find out?)
PHP version (eg, 7.4): 8.1.16

The issue you are facing:
I just imported an event to my calendar. The event says it starts at 17:00 UTC+2 and ends at 19:00 UTC+2. I am on UTC+3 (because of DST). In the calendar web app, it showed up as 17:00-19:00 and I had to change it to 18:00-20:00 manually.

Is this the first time you’ve seen this error? Y/N): Yes

Steps to replicate it:

The .ics file is at dpaste: .ics file which triggered wrong timezone in nextcloud

I use scripts to generate a few calendar entries. One uses a form such as:

DTSTART;TZID=Europe/London:20221005T193000
DURATION:PT1H30M

another one uses:

DTSTART:20230429T070600Z
DURATION:PT1S

Both of these load correctly and display in the local time (which is currently GMT+1).

The first one will assume that the time is local and apply DST as appropriate. The second one forces the time to Zulu regardless of any DST in force. RFC 5545 gives details of acceptable formats.

1 Like