From 40b3a842d9f891d49ba1b8b744767514a121e1d0 Mon Sep 17 00:00:00 2001 From: Raz Date: Sun, 19 Jan 2025 07:12:28 +0100 Subject: [PATCH] fix issue with locatime --- 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 4a19458..75bb81e 100644 --- a/tournaments/models/tournament.py +++ b/tournaments/models/tournament.py @@ -764,7 +764,7 @@ class Tournament(models.Model): if datetime.now().date() >= self.start_date.date(): return is_build_and_not_empty minimum_publish_date = self.creation_date.replace(hour=9, minute=0) + timedelta(days=1) - return timezone.now() >= minimum_publish_date + return timezone.now() >= timezone.localtime(minimum_publish_date) def display_teams(self): if self.end_date is not None: