-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use timezone via settings to get PREFER_DATES_FROM result (#1155)
* tests(test_date_parser.py): add test when timezone is provided via settings * fix(dateparser/parser.py): consider timezone provided via settings * fix(dateparser/parser.py): fetch timezone details through inbuilt method This ensures that we are still processing times such as EDT or AEDT which returns UnknownTimezoneError with pytz.timezone method.
- Loading branch information
1 parent
b368edd
commit eddaac6
Showing
2 changed files
with
21 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters