-
-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can this parser handle Daylight Saving? #201
Comments
https://stackoverflow.com/questions/5495803/does-utc-observe-daylight-saving-time#answer-5495816 I didn't think UTC observed DST? |
Thanks for following up :-) I believe, the timezone in this calendar is “W. Europe Standard Time”, which is apparently Microsofts way of saying “Europe/Berlin” or similar. See https://support.microsoft.com/en-nz/help/973627/microsoft-time-zone-index-values, search for “W. Europe Standard Time”. (These events are created by Outlook...). When it's daylight saving time, it switches to “W. Europe Daylight Time” instead. I'd still say, it'd be expected to “remove” the offset when converting to UTC? What is your opinion? Maybe it's this part that is not entirely respected? BEGIN:VTIMEZONE
TZID:W. Europe Standard Time
BEGIN:STANDARD
DTSTART:19701025T030000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYHOUR=3;BYMINUTE=0;BYMONTH=10
TZNAME:W. Europe Standard Time
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:19700329T020000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYHOUR=2;BYMINUTE=0;BYMONTH=3
TZNAME:W. Europe Daylight Time
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
END:DAYLIGHT
END:VTIMEZONE |
Have you tried using This will correct the timezone to "Europe/Berlin". |
Yes, it can. For Windows calendars you need the flag described above. |
7.0.x
Europe/Berlin
2.1.8
Description of the Issue:
This issue is very hard for me understand, because I can barely understand the offending iCal feed. But it seems to me, that the parser does not factor in daylight saving time.
My goal is to convert all events from an ICS feed to UTC timestamps to save in a database.
I use the following code
Steps to Reproduce:
It works fine with most feeds, but not when I use this calendar. Events are 1 hour off in the database.
I would assume that these events needed to be -1 (or -2?) hour in UTC, but they come out as they are in the file.
Is there something wrong with my code or is it simply a feature not implemented in the parser? Or an issue with the calendar feed?
The text was updated successfully, but these errors were encountered: