Make sure is date iso 8601 formatted
This commit is contained in:
parent
a6efce359d
commit
7f3cd42c3e
4 changed files with 5 additions and 3 deletions
|
|
@ -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'))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue