From 57033858cd08432d2e407684b27a8781fc15f664 Mon Sep 17 00:00:00 2001 From: neingeist Date: Tue, 13 Nov 2018 22:23:18 +0100 Subject: [PATCH] use teh german date format --- prolefeeder.py | 2 +- templates/download.html | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) 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() {