Skip to content

Commit

Permalink
registerTimezones(): register timezones with key
Browse files Browse the repository at this point in the history
- Allows timezones with multiple names to be registered, e.g. "US/Pacific" as an alias of "America/Los_Angeles"
  • Loading branch information
kwwette authored Oct 20, 2019
1 parent be8bb22 commit c97b743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function registerTimezones() {
const comp = new ICAL.Component(parsed);
const vtimezone = comp.getFirstSubcomponent('vtimezone');

ICAL.TimezoneService.register(vtimezone);
ICAL.TimezoneService.register(key, new ICAL.Timezone(vtimezone));
});
}

Expand Down

0 comments on commit c97b743

Please sign in to comment.