We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c30347f commit c04908eCopy full SHA for c04908e
index.js
@@ -131,7 +131,8 @@ class IcalExpander {
131
function registerTimezones() {
132
Object.keys(timezones).forEach((key) => {
133
const icsData = timezones[key];
134
- const parsed = ICAL.parse(`BEGIN:VCALENDAR\nPRODID:-//tzurl.org//NONSGML Olson 2012h//EN\nVERSION:2.0\n${icsData}\nEND:VCALENDAR`);
+ const icsTimezone = `BEGIN:VTIMEZONE\r\nTZID:${key}\r\n${icsData}\r\nEND:VTIMEZONE`;
135
+ const parsed = ICAL.parse(`BEGIN:VCALENDAR\nPRODID:-//tzurl.org//NONSGML Olson 2012h//EN\nVERSION:2.0\n${icsTimezone}\nEND:VCALENDAR`);
136
const comp = new ICAL.Component(parsed);
137
const vtimezone = comp.getFirstSubcomponent('vtimezone');
138
0 commit comments