From 71e3cdc788da02975c5d1a9819035124ebaa6e31 Mon Sep 17 00:00:00 2001 From: Laurent Date: Fri, 4 Jul 2025 18:30:29 +0200 Subject: [PATCH] attempt to fix future tournaments --- tournaments/models/tournament.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tournaments/models/tournament.py b/tournaments/models/tournament.py index fa81b9e..08f9578 100644 --- a/tournaments/models/tournament.py +++ b/tournaments/models/tournament.py @@ -1038,9 +1038,9 @@ class Tournament(BaseModel): # tomorrow = datetime.now().date() + timedelta(days=1) timezoned_datetime = self.local_start_date() start = timezoned_datetime.replace(hour=0, minute=0) - now_utc = timezone.now() - now = now_utc.astimezone(self.timezone()) - return start >= now + # now_utc = timezone.now() + # now = now_utc.astimezone(self.timezone()) + return start >= timezone.now() def has_ended(self): return self.end_date is not None