-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
bug: Error in algorithm: tzinfo expected to be known. #52
Comments
Hi, thanks. Can you post some Python code to create the event? We can fix it best if we know how to create the error. |
Currently I don't have access to replicate stand alone. This was happening in an app running inside AppDomain addon in HomeAssistant. But by adding some logging code , I traced this down the failure to single and multiple full day events. I added this code in the middle on the app. The first entry does not have timezone and results in the exception.
I adjusted the same block to populate tzinfo and locally resolved the error:
|
I think, we are getting closer to reproducing it. Can you tell me the contents of within_days(span_start_day, span_stop_day) And print instead of just dtstart of the event the whole event.to_ical()? That should be enough to reproduce it. |
This is the scrubbed output of event.to_ical(). I don't have access to modify recurring_ical_events itself.
|
I'm consistently tripping up on this whenever sending a timezone aware datetime, for example:
produces this error:
|
I reproduced this issue by assigning a timezone to datetime like so: |
There is PR #63 which reproduces this behavior. |
A fix is deployed from version v0.2.3b on. |
Describe the bug
I created a new repetitive event and have been hitting this exception. The event is in my default time zone (GMT-06:00 Central - Chicago Time).
To Reproduce
ICS file
I do not have an ics file at this time.
Expected behavior
Console output
Version:
Additional context
Suggested implementation
python-recurring-ical-events/test/calendars/issue-15-duplicated-events.ics
Line 1 in f4a90b2
python-recurring-ical-events/test/test_issue_15.py
Line 21 in f4a90b2
The text was updated successfully, but these errors were encountered: