We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63c8b07 commit 5e731fcCopy full SHA for 5e731fc
dateparser/date_parser.py
@@ -32,7 +32,7 @@ def parse(self, date_string, parse_method, settings=None):
32
else:
33
if "local" in _settings_tz:
34
stz = get_localzone()
35
- if hasattr(stz, "localize") and sys.version_info < (3, 9):
+ if hasattr(stz, "localize") and sys.version_info < (3, 6):
36
date_obj = stz.localize(date_obj)
37
38
date_obj = date_obj.replace(tzinfo=stz)
0 commit comments