fix planned date display in prog

sync_v2
Raz 6 months ago
parent 00744c7c71
commit e4f1590e27
  1. 2
      tournaments/models/tournament.py

@ -2049,7 +2049,7 @@ class Tournament(BaseModel):
# Sort matches by court if available # Sort matches by court if available
matches.sort(key=lambda m: (m.court_index if m.court_index is not None else 999)) 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() formatted_name = formats.date_format(local_date, format='l j F à H:i').capitalize()
mg = self.create_match_group( mg = self.create_match_group(
name=formatted_name, name=formatted_name,

Loading…
Cancel
Save