python-caldav / caldav

Apache License 2.0
326 stars 98 forks source link

Remove dependency on pytz #231

Closed tobixen closed 10 months ago

tobixen commented 1 year ago

The pytz and tzlocal libraries are deprecated, in modern python versions timezone handling is included in the embedded libraries - so we should remove all dependencies on pytz. I think I sort of did this already, but then I got into problems. The task is basically to look into the code and search for all instances of pytz and tzlocal and ensure that it's either removed or only used as a fallback should timezones not be available. I vaguely remember that I already did this but had to comment out the work due to problems with the icalendar library.

Problems:

tobixen commented 10 months ago

Awesome. Indeed, the icalendar problems have been mended and we've stopped supporting python2, so the shedding of the pytz dependency was overdue. :-)