From e4f1590e277b7f9d1e1bafbbd285e24e461d7727 Mon Sep 17 00:00:00 2001 From: Raz Date: Mon, 19 May 2025 18:25:33 +0200 Subject: [PATCH] fix planned date display in prog --- 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 e1ee430..b899567 100644 --- a/tournaments/models/tournament.py +++ b/tournaments/models/tournament.py @@ -2049,7 +2049,7 @@ class Tournament(BaseModel): # Sort matches by court if available matches.sort(key=lambda m: (m.court_index if m.court_index is not None else 999)) - local_date = matches[0].local_start_date() + local_date = matches[0].local_planned_start_date() formatted_name = formats.date_format(local_date, format='l j F à H:i').capitalize() mg = self.create_match_group( name=formatted_name,