-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
This adds generating VTIMEZONE components from tzinfo objects #741
base: main
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 11770019396Details
💛 - Coveralls |
I run a bit into an issue here. I can generate them successfully for zoneinfo/dateutil.
changes the transition times. Here VTIMEZONE == VTIMEZONE
Since these yield the same result (VTIMEZONE == VTIMEZONE):
I conclude that
Next steps:
So, in case I cannot fix this and you depend on pytz, I still recommend that you upgrade |
I think, the interface I would like to use is this one:
This will then add all the missing timezones automatically to the calendar. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, except for one param description.
The pytz parsing seems to fail when we check two calendars for equality.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few grammar fixes, and comments.
Co-authored-by: Steve Piercy <[email protected]>
Co-authored-by: Steve Piercy <[email protected]>
Co-authored-by: Steve Piercy <[email protected]>
Fixes #722
Add
icalendar.Timezone.from_tzinfo(ZoneInfo('Europe/Berlin'))
.Result: This is really tricky. I do not know why pytz does not converge or why it is weird around the transition times.
Two tests check this. When we parse a calendar, at least we get the right transition times in pytz and zoneinfo.