-
Notifications
You must be signed in to change notification settings - Fork 96
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
Proposed fix for issue 75: handle offset-naive and offset-aware datetimes #76
Conversation
I am on Debian and my radicale 2.1.5 installation using python3-vobject v. 0.9.5-1 still has these issues. Any good explanations? |
@mortlind can you post the code you were trying to run and the full traceback? |
@wpercy The traceback:
|
@mortlind This is actually an dateutil error:
|
@wpercy OK. Is it dateutil I must update? I am on version |
@mortlind This is a different error (maybe caused by radicale). Look at the traceback: File "/usr/lib/python3/dist-packages/radicale/xmlutils.py", line 343 is the last one before dateutil. This pull-request solved an error caused by "…/site-packages/vobject/icalendar.py", line 501. |
@mortlind I think you were right to post here; AFAICT, the issue is caused by vobject :) The backtrace doesn't show it clearly, but the issue is raised when Radicale iterating on a stream of values created by vobject through the |
Proposed fix for issue #75, including test-cases.
This assumes that a
DTSTART
entry without time and time-zone information has to be handled "time-zone agnostic" and thus inhibits thatuntil
will have tzinfo set. If this has to behave differently, please let me know and I'll happily adjust the test-cases and the fix to whatever is required.