scrapinghub / dateparser

python parser for human readable dates
BSD 3-Clause "New" or "Revised" License
2.55k stars 465 forks source link

The localize method is no longer necessary. Warning #1039

Closed DaiZack closed 2 years ago

DaiZack commented 2 years ago

got this warning, the function still works fine.

/usr/local/lib/python3.8/dist-packages/dateparser/date_parser.py:35: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html

DavidMStraub commented 2 years ago

Duplicate of https://github.com/scrapinghub/dateparser/issues/1013

gutsytechster commented 2 years ago

This can be closed now with the merge of #1062