Open derekantrican opened 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"));
ICAL.TimezoneService.register(vcalendar.getFirstSubcomponent("vtimezone"));
directly after var vcalendar = new ICAL.Component(jcalData);
var vcalendar = new ICAL.Component(jcalData);
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);