Skip to content

Commit

Permalink
Return the version
Browse files Browse the repository at this point in the history
  • Loading branch information
serhii73 committed Oct 23, 2024
1 parent 63c8b07 commit 5e731fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dateparser/date_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def parse(self, date_string, parse_method, settings=None):
else:
if "local" in _settings_tz:
stz = get_localzone()
if hasattr(stz, "localize") and sys.version_info < (3, 9):
if hasattr(stz, "localize") and sys.version_info < (3, 6):
date_obj = stz.localize(date_obj)
else:
date_obj = date_obj.replace(tzinfo=stz)
Expand Down

0 comments on commit 5e731fc

Please sign in to comment.