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

[WIP] Fix PytzUsageWarning #1109

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

[WIP] Fix PytzUsageWarning #1109

wants to merge 1 commit into from

Conversation

serhii73
Copy link
Collaborator

@serhii73 serhii73 commented Dec 7, 2022

Close #1089

>>> from datetime import datetime
>>> dateparser.parse(
...     "in 3 hours",
...     settings={
...         "TO_TIMEZONE": "UTC",
...         "RELATIVE_BASE": datetime.now(),
...     },
... )
datetime.datetime(2022, 12, 7, 14, 43, 47, 345343)

@Gallaecio Gallaecio self-requested a review December 7, 2022 11:55
@serhii73 serhii73 changed the title Fix PytzUsageWarning [WIP] Fix PytzUsageWarning Dec 7, 2022
@serhii73
Copy link
Collaborator Author

serhii73 commented Dec 7, 2022

#1062 - Perhaps this would be helpful to fix this issue.

@serhii73 serhii73 marked this pull request as draft February 2, 2023 15:55
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

Successfully merging this pull request may close these issues.

PytzUsageWarning: The localize method is no longer necessary
2 participants