1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-07-03 22:42:53 +02:00

datetime are time-zoned

This commit is contained in:
Yohann D'ANELLO
2020-05-05 13:51:47 +02:00
parent ecbbe46420
commit 72ca257bc3
3 changed files with 11 additions and 11 deletions

View File

@ -46,27 +46,27 @@ class Tournament(models.Model):
)
date_inscription = models.DateTimeField(
default=datetime.now,
default=timezone.now,
verbose_name=_("date of registration closing"),
)
date_solutions = models.DateTimeField(
default=datetime.now,
default=timezone.now,
verbose_name=_("date of maximal solution submission"),
)
date_syntheses = models.DateTimeField(
default=datetime.now,
default=timezone.now,
verbose_name=_("date of maximal syntheses submission for the first round"),
)
date_solutions_2 = models.DateTimeField(
default=datetime.now,
default=timezone.now,
verbose_name=_("date when solutions of round 2 are available"),
)
date_syntheses_2 = models.DateTimeField(
default=datetime.now,
default=timezone.now,
verbose_name=_("date of maximal syntheses submission for the second round"),
)