diff --git a/prolefeeder.py b/prolefeeder.py index a7e0055..f5c78b0 100644 --- a/prolefeeder.py +++ b/prolefeeder.py @@ -25,7 +25,7 @@ attachment_filenames = {} class DownloadForm(FlaskForm): start_time = DateTimeField('Startzeit', validators=[InputRequired()], - format='%Y-%m-%d %H:%M') + format='%d.%m.%Y %H:%M') length = IntegerField('Länge', validators=[ InputRequired(), diff --git a/templates/download.html b/templates/download.html index 449dacb..e26ab93 100644 --- a/templates/download.html +++ b/templates/download.html @@ -28,7 +28,12 @@
{{ form.start_time.label(class_="control-label") }}
- + @@ -67,7 +72,7 @@ $(document).ready(function() { $('#start_time_group').datetimepicker({ locale: 'de', - format: 'YYYY-MM-DD HH:mm', + format: 'DD.MM.YYYY HH:mm', sideBySide: true }); $(".alert-success").delay(4000).fadeOut(500, function() {