Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PytzUsageWarning #1017

Closed
andreas-vester opened this issue Nov 10, 2021 · 1 comment
Closed

PytzUsageWarning #1017

andreas-vester opened this issue Nov 10, 2021 · 1 comment

Comments

@andreas-vester
Copy link

I'm using a third party library that makes use of dateparser. I do get a warning when hitting the following line:

date_obj = stz.localize(date_obj)

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

@Gallaecio
Copy link
Member

Duplicate of #1013

@Gallaecio Gallaecio marked this as a duplicate of #1013 Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants