Make sure is date iso 8601 formatted

This commit is contained in:
Ana Custura 2026-04-08 15:05:45 +01:00
parent a6efce359d
commit 7f3cd42c3e
4 changed files with 5 additions and 3 deletions

View file

@ -34,7 +34,7 @@ class Step2Form(FlaskForm):
butterbox_name = StringField(_l('Butterbox Name'), validators=[DataRequired()])
butterbox_logo = FileField((_l('Butterbox Logo')), validators=[FileAllowed(['jpg', 'png', 'svg'], _l('Images only!'))])
butterbox_hostname = StringField(_l('Butterbox Hostname'), validators=[DataRequired(), Length(1, 64), hostname_check])
butterbox_date = DateTimeField(_l('Butterbox Date'), format='%d/%m/%Y, %H:%M:%S')
butterbox_date = DateTimeField(_l('Butterbox Date'), format='%Y-%m-%dT%H:%M:%SZ')
submit = SubmitField(_l('Next'))