diff --git a/bda/models.py b/bda/models.py index baed138e..ad9df179 100644 --- a/bda/models.py +++ b/bda/models.py @@ -34,7 +34,8 @@ class Tirage(models.Model): default=False) def date_no_seconds(self): - return self.fermeture.strftime('%d %b %Y %H:%M') + return self.fermeture.astimezone(timezone.get_current_timezone()) \ + .strftime('%d %b %Y %H:%M') def __str__(self): return "%s - %s" % (self.title, self.date_no_seconds()) @@ -91,7 +92,8 @@ class Spectacle(models.Model): return "%d" % calendar.timegm(self.date.utctimetuple()) def date_no_seconds(self): - return self.date.strftime('%d %b %Y %H:%M') + return self.date.astimezone(timezone.get_current_timezone()) \ + .strftime('%d %b %Y %H:%M') def __str__(self): return "%s - %s, %s, %.02f€" % (self.title, self.date_no_seconds(), diff --git a/bda/templates/descriptions.html b/bda/templates/descriptions.html index 7eb8b93b..a7a4e87b 100644 --- a/bda/templates/descriptions.html +++ b/bda/templates/descriptions.html @@ -34,6 +34,7 @@ +
{% for show in shows %}+ |