larrybolt / online-ics-feed-viewer

Online ICS / iCal feed viewer
https://larrybolt.github.io/online-ics-feed-viewer/
MIT License
69 stars 24 forks source link

show event times in web browser's local time zone #14

Open jepler opened 1 year ago

jepler commented 1 year ago

We'd like to show event times on a web page, but with the times adapted to the user's local timezone. However, this viewer seems to always show the time in the calendar without regard to time zone. e.g., https://larrybolt.github.io/online-ics-feed-viewer/#feed=https%3A//raw.githubusercontent.com/adafruit/adafruit-circuitpython-weekly-meeting/master/meeting.ical&cors=false&title=My%20Feed&hideinput=true shows me the times in the meeting.ical (US eastern time) not in my local time zone (US central time).

typical event:

BEGIN:VEVENT
SUMMARY:CircuitPython Discord Meeting\n(2PM in UTC-5)
DTSTART;TZID=US/Eastern:20220103T140000
DTEND;TZID=US/Eastern:20220103T150000
DTSTAMP;TZID=US/Eastern:20211129T124515
END:VEVENT

Timezone handling is awful, I know :frowning: