pelican icon indicating copy to clipboard operation
pelican copied to clipboard

Replace `pytz` dependency with `zoneinfo`

Open justinmayer opened this issue 4 years ago • 2 comments

Python 3.9+ includes zoneinfo, which would presumably allow us to replace the pytz third-party dependency with time-zone machinery included in Python's standard library.

Since we need to support Python 3.7 and 3.8 for a while, we could use the corresponding back-ported package for users on older Python versions.

justinmayer avatar Dec 11 '21 16:12 justinmayer

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your participation and understanding.

stale[bot] avatar Apr 18 '22 18:04 stale[bot]

Useful related thread on this topic: https://twitter.com/AdamChainz/status/1562359913162104832

justinmayer avatar Aug 28 '22 13:08 justinmayer

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your participation and understanding.

stale[bot] avatar Nov 02 '22 03:11 stale[bot]

I think this is still valid. There are guides to help migrating from pytz to zoneinfo https://pytz-deprecation-shim.readthedocs.io

pauloxnet avatar Nov 02 '22 10:11 pauloxnet