fix issue with locatime

bracket-feature
Raz 10 months ago
parent b519e5dd7a
commit 40b3a842d9
  1. 2
      tournaments/models/tournament.py

@ -764,7 +764,7 @@ class Tournament(models.Model):
if datetime.now().date() >= self.start_date.date(): if datetime.now().date() >= self.start_date.date():
return is_build_and_not_empty return is_build_and_not_empty
minimum_publish_date = self.creation_date.replace(hour=9, minute=0) + timedelta(days=1) 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): def display_teams(self):
if self.end_date is not None: if self.end_date is not None:

Loading…
Cancel
Save