dateparser
dateparser copied to clipboard
[WIP] Fix PytzUsageWarning
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)
https://github.com/scrapinghub/dateparser/pull/1062 - Perhaps this would be helpful to fix this issue.