-
Notifications
You must be signed in to change notification settings - Fork 86
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
Add pytz dependency #77
Conversation
Hi, I saw this comment by the author of Radicale:
So:
I have no strong opinion on pytz, the goal is not to have the smallest of the smallest image. Thanks, |
I've used the caldav and icalendar Python packages. Seems like Radicale is actually able to add the event even without pytz, but does print the above mentioned error. I tried adding an event with and without pytz installed, and with it adds a So according to https://icalendar.org/validator.html Radicale creates invalid ical files without pytz (or maybe py-icalendar should have added the I was using this code to add the events:
And |
Thanks for the detailed answer. I wonder : why is the code using Timezone instead of sending UTC ? That made the database (here radicale) agnostic of the consumer location/timezone (and this is what I have used at work in all case). There was some comments, in Radicale, that basically said that the iCalendar spec requires UTC. |
This isn't relevant for this particular example, but i also use recurring events, and as far as i understand they would become incorrect when switching to/from daylight saving time if using UTC. I'm basing that on this Stack overflow answer: https://stackoverflow.com/a/42941087 |
Hi @silaslenz , My comment got lost. Thanks for the link to this SO answer ! I learnt about recurrence/UTC and daylight savings! Very appreciated. I am merging this PR and will push a tag ASAP. |
Perfect! Thanks for the quick merge :) |
tagged as |
Radicale requires pytz for timezone support. As is adding events with for example
DTSTART;TZID=Europe/Stockholm;VALUE=DATE-TIME:20200527T101010
results inERROR:root:No module named 'pytz'
, similar to here https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=886425