jakefrk / icaltogooglecal

Google Script for fetching ical by URL and posting events to Google Calendar
0 stars 0 forks source link

Doesn't account for timezones #2

Open derekantrican opened 5 years ago

derekantrican commented 5 years ago

Just so you know, your code only works if the ical events are in the script's local timezone. You should add ICAL.TimezoneService.register(vcalendar.getFirstSubcomponent("vtimezone"));

directly after var vcalendar = new ICAL.Component(jcalData);