aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlban Gruin2018-01-17 19:15:09 +0100
committerAlban Gruin2018-01-17 21:32:59 +0100
commit85112aafbcfe684b8b4d4fa2a47fd6cc2dcd2e25 (patch)
tree809dd99a2c57c354756377e45056b49fe8162ec6
parentdd1758f543d45376ea64d6846152fbf229b936f9 (diff)
Format correct de la date
-rw-r--r--forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/forms.py b/forms.py
index fbd6d02..5e76bc1 100644
--- a/forms.py
+++ b/forms.py
@@ -36,7 +36,7 @@ class QSJPSForm(forms.Form):
# On définit les valeurs par défaut de cette manière pour
# éviter les mauvaises surprises. On retire les secondes des
# heures de début et de fin.
- self.fields["day"].initial = tz_now()
+ self.fields["day"].initial = tz_now().strftime("%Y-%m-%d")
self.fields["begin"].initial = tz_now().strftime("%H:%M")
self.fields["end"].initial = (tz_now() + timedelta(hours=1)).strftime("%H:%M")