-
-
Notifications
You must be signed in to change notification settings - Fork 179
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
How to match dateuilts.rrule and python icalendar daylightsavingtime aware #162
Comments
This is not really an icalendar problem, more an issue with dateutil's rrule. Have a look at this stackoverflow issue for a workaround. |
Am 30.05.2015 11:18, schrieb Christian Geier:
This might work as long as all dates are in the same timezone. Having to I will send the problem to dateutil author as there seams to be no Regards |
dateutil development has picked up again, here at github: Quoting Estartu (2015-05-30 12:10:19)
|
I'll reference dateutil/dateutil#641 here. It seems pytz eager offset calculation causes this error. Icalendar could consider moving off pytz onto dateutil.tz or something else that handles Daylight savings better. |
Looks sensible, we should put it onto the next major release schedule. |
I would close this as off-topic or it could be moved into a discussion. To me the problem seems pytz related: In contrast to zoneinfo, pytz does not change between summer and winter by itself during recurrence calculation. Also, https://pypi.org/project/recurring-ical-events/ calculates the recurrence values and this is not simple and there are lots of edge cases to consider if you would like to read calendars of other providers and companies. Feel free to re-open and discuss or open another issue :) |
I'm dealing with some ical problems.
I have an ical event.
As you can see there is an RRule repeating this event every last friday of the month.
I parsed this ical with icalendar.
I'm using:
Everything so far works just fine.
When I Try to get the next say 10 dates with:
I get:
Which seems okay on the first glance, but on deeper inspection there is a problem starting with October 30th, daylight saving time ends October 25th but tzinfo info of the datetime object is still "DstTzInfo 'CET' CEST+2:00:00 DST"
The second problem is that the 25th of December is in this list instead of being skipped a specified in the EXDATE. The Problem seams to be tat while parsing the exdate rule daylight saving time is calculated correctly and therefore the exdate 19:00:00+01:00 didn't match the calculated repeat time of 19:00:00+02:00.
Am I doing something wrong there?
Converting everything to UTC and processing there doesn't help because 17:00:00 UTC don't match 18:00:00 UTC either.
The text was updated successfully, but these errors were encountered: