vikstrous / Quest-Schedule-Exporter

Allows University of Waterloo students to export their schedules from Quest.
schedule.wattools.com
5 stars 9 forks source link

Don't assume the time zone. #5

Open shalecraig opened 10 years ago

shalecraig commented 10 years ago

Switching from PST to EST is hard. It's even worse if your calendar assumes a timezone.

According to this, adding the below will probably do it, but I don't have a setup to try it on:

BEGIN:VTIMEZONE
TZID:America/New_York
X-LIC-LOCATION:America/New_York
BEGIN:DAYLIGHT
TZOFFSETFROM:-0500
TZOFFSETTO:-0400
TZNAME:EDT
DTSTART:19700308T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:-0400
TZOFFSETTO:-0500
TZNAME:EST
DTSTART:19701101T020000
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU
END:STANDARD
END:VTIMEZONE
vikstrous commented 10 years ago

Heh. I'll look into it when I get my schedule for next term. Meanwhile, if anyone wants to try fixing the timezone issues, I'm accepting pull requests :P