Times are still not right when DST is on
-
The hours are still one off when daylight save time is on.
I am at timezone “Europe/Berlin” which means in winter times GMT+1 and in summer times GMT+2.
Instead of doing fancy time calculations within the plug-in, you could simply treat all times as they are (local time with timezone) and add a timezone header to the ics file to specify DST
DTSTART;TZID=Europe/Berlin:20080625T090000
BEGIN:VCALENDAR
…
BEGIN:VTIMEZONE
TZID:Europe/Berlin
X-LIC-LOCATION:Europe/Berlin
BEGIN:DAYLIGHT
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
DTSTART:19700329T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
DTSTART:19701025T030000
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
END:STANDARD
END:VTIMEZONE
…
- The topic ‘Times are still not right when DST is on’ is closed to new replies.