diff --git a/dateparser/freshness_date_parser.py b/dateparser/freshness_date_parser.py index 36ce40e50..2d1ff1aa2 100644 --- a/dateparser/freshness_date_parser.py +++ b/dateparser/freshness_date_parser.py @@ -72,10 +72,7 @@ def apply_time(dateobj, timeobj): now = now.replace(tzinfo=ptz) if not now.tzinfo: - if hasattr(self.get_local_tz(), 'localize'): - now = self.get_local_tz().localize(now) - else: - now = now.replace(tzinfo=self.get_local_tz()) + now = now.replace(tzinfo=self.get_local_tz()) elif ptz: localized_now = datetime.now(ptz)