Skip to content

PytzUsageWarning: The localize method is no longer necessary #1089

@Ibo0815

Description

@Ibo0815

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions