sync3
Laurent 5 months ago
parent 150d44ad0a
commit 2fa01108d8
  1. 2
      tournaments/models/tournament.py

@ -594,7 +594,7 @@ class Tournament(BaseModel):
first_match = min(valid_matches, key=lambda match: match.start_date) first_match = min(valid_matches, key=lambda match: match.start_date)
# Format the date # Format the date
timezone = first_match.tournament().timezone() timezone = first_match.get_tournament().timezone()
local_start = first_match.start_date.astimezone(timezone) local_start = first_match.start_date.astimezone(timezone)
time_format = 'l d M' time_format = 'l d M'
formatted_schedule = f" - {formats.date_format(local_start, format=time_format)}" formatted_schedule = f" - {formats.date_format(local_start, format=time_format)}"

Loading…
Cancel
Save