dateparser icon indicating copy to clipboard operation
dateparser copied to clipboard

PytzUsageWarning: The localize method is no longer necessary

Open Ibo0815 opened this issue 3 years ago • 5 comments

Full Usage warning: 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 date_obj = stz.localize(date_obj)

Line 35 in date_parser.py

Occurs when parsing this here: "2022-10-03 22:00:00"

Python Version: 3.9.1

Ibo0815 avatar Oct 20 '22 17:10 Ibo0815