From f394bb5eab251dbd3f6c3e79ffd1f538cb3642fc Mon Sep 17 00:00:00 2001 From: Laurent Date: Mon, 10 Mar 2025 11:03:14 +0100 Subject: [PATCH] attempt to fix local dates --- tournaments/models/tournament.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tournaments/models/tournament.py b/tournaments/models/tournament.py index 617926c..484b702 100644 --- a/tournaments/models/tournament.py +++ b/tournaments/models/tournament.py @@ -932,7 +932,7 @@ class Tournament(models.Model): # end = self.start_date + timedelta(days=self.day_duration + 1) # return self.start_date.replace(hour=0, minute=0) <= timezone.now() <= end - timezoned_datetime = timezone.localtime(self.start_date) + timezoned_datetime = self.local_start_date() end = timezoned_datetime + timedelta(days=self.day_duration + 1) now = timezone.now()