From 8cf3831822b708270f38fabb630bbdfdfbb41be1 Mon Sep 17 00:00:00 2001 From: sag᠎e Date: Thu, 5 Jan 2023 15:38:19 +0000 Subject: Fixed #34243 -- Fixed timesince() crash with timezone-aware dates and interval longer than 1 month. Regression in 8d67e16493c903adc9d049141028bc0fff43f8c8. --- django/utils/timesince.py | 1 + 1 file changed, 1 insertion(+) (limited to 'django/utils') diff --git a/django/utils/timesince.py b/django/utils/timesince.py index 701c49bab9..f582d0e4f2 100644 --- a/django/utils/timesince.py +++ b/django/utils/timesince.py @@ -97,6 +97,7 @@ def timesince(d, now=None, reversed=False, time_strings=None, depth=2): d.hour, d.minute, d.second, + tzinfo=d.tzinfo, ) else: pivot = d -- cgit v1.3