Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update TimeZoneDefinition.ts to fallback to parsing when mapping fails #375

Merged
merged 1 commit into from
Feb 25, 2021

Conversation

marcoancona
Copy link
Contributor

@marcoancona marcoancona commented Feb 25, 2021

Events that do not provide a standard timezone id (e.g. we see a lot of events with Id Customized Time Zone) currently do not provide a way to access the definition of the timezone. In this case, TimeZone is Customized Time Zone and StartTimeZone is undefined. Afaik, there is no way to access the timezone parameters.

This PR is to fallback to timezone parsing when mapping fails. @gautamsi what do you think about this?

PS: events with "Customized Time Zone" are not only edge cases. iOS creates events with this kind of timezone!

Parse TimeZoneInfo as a fallback to simple timezone mapping
@marcoancona marcoancona changed the title Update TimeZoneDefinition.ts Update TimeZoneDefinition.ts to fallback to parsing when mapping fails Feb 25, 2021
@gautamsi
Copy link
Owner

good catch

@gautamsi gautamsi merged commit 107687f into gautamsi:master Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants