From 9a3f92306d5354c32c0fa263ccaa29ee7dee1e40 Mon Sep 17 00:00:00 2001 From: Razmig Sarkissian Date: Wed, 24 Sep 2025 08:45:07 +0200 Subject: [PATCH] Replace timezone.localtime with local planned start date method --- 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 384827c..7472d8d 100644 --- a/tournaments/models/tournament.py +++ b/tournaments/models/tournament.py @@ -2212,7 +2212,7 @@ class Tournament(BaseModel): # Group matches by hour matches_by_hour = {} for match in matches_by_day[selected_day]: - local_time = timezone.localtime(match.planned_start_date) + local_time = match.local_planned_start_date() hour_key = local_time.strftime('%H:%M') if hour_key not in matches_by_hour: