Skip to content

Commit 5e731fc

Browse files
committed
Return the version
1 parent 63c8b07 commit 5e731fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dateparser/date_parser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def parse(self, date_string, parse_method, settings=None):
3232
else:
3333
if "local" in _settings_tz:
3434
stz = get_localzone()
35-
if hasattr(stz, "localize") and sys.version_info < (3, 9):
35+
if hasattr(stz, "localize") and sys.version_info < (3, 6):
3636
date_obj = stz.localize(date_obj)
3737
else:
3838
date_obj = date_obj.replace(tzinfo=stz)

0 commit comments

Comments
 (0)