-
Notifications
You must be signed in to change notification settings - Fork 11
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
Reading in-file timezones #10
Comments
It seems like it's incorrect to assume that The |
I've been investigating how to address this a bit more. We need to parse the There's no simple constructor for these, only LoadLocationFromTZData. It Honestly, I think converting I considered creating a location using
I can imagine the recurrence issues being the biggest dealbreaker. Any suggestions? |
I agree with all you've written, and I don't have good ideas to solve this. |
I've proposed adding a new public constructor for |
|
Looks like https://github.com/martin-sucha/timezones/blob/main/timezones.go can be used as a reference to encode system TZDATA into VTIMEZONE. Also, https://github.com/martin-sucha/vtimezone2tzif can be used to convert VTIMEZONE into TZDATA into The process isn't ideal; there's lots of pointless conversions to intermediate states, but it's the best that can be done with go's existing API, and it seems that changing isn't desirable right now. |
This sadly is a feature required to parse Office365 calendars too. The Exchange Server always embeds a timezone into the calendar with kinda random names ( Test-Calendar with one event in Office365
|
I had the same issue. I ended up pre-processing the calendar events, deleting TZID parameters which can't be loaded with
|
Did you find how to generate the VTIMEZONE from a time.Location, if you happened to look deeper into it? And also how to get a |
Sorry, I didn't look into this any further and don't have anything new to add. Looking at the |
I've a lot of events that look like this:
This doesn't seem to be invalid; the timezone is specific in the file. However, parsing these returns error
unknown time zone local
.The text was updated successfully, but these errors were encountered: