Last active
May 14, 2024 10:16
-
-
Save mogarick/9246085 to your computer and use it in GitHub Desktop.
Getting UTC timestamps of iCal with Timezone using the mozilla-comm/ical.js lib
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var vtimezones = comp.getAllSubcomponents("vtimezone"); | |
_.each(vtimezones, function (vtimezone) { | |
//Si timezone está registrada | |
if (!(ICAL.TimezoneService.has( | |
vtimezone.getFirstPropertyValue("tzid")))) { | |
ICAL.TimezoneService.register(vtimezone); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment