From 5364aded5cf15b4679c058f32cc5d693559c4505 Mon Sep 17 00:00:00 2001 From: Felix Hamann Date: Sun, 10 Jun 2018 23:25:28 +0200 Subject: [PATCH] fixed issue with date-format from datepicker --- src/Handler/Course.hs | 2 +- templates/standalone/datepicker.julius | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Handler/Course.hs b/src/Handler/Course.hs index a597a504a..9c6033a74 100644 --- a/src/Handler/Course.hs +++ b/src/Handler/Course.hs @@ -245,7 +245,7 @@ courseEditHandler course = do insert_ $ CourseEdit aid now cid -- if (isNothing updOkay) -- then do - addMessageI "info" $ MsgCourseEditOk tident csh + addMessageI "success" $ MsgCourseEditOk tident csh -- redirect $ TermCourseListR tid -- else addMessageI "danger" $ MsgCourseEditDupShort tident csh diff --git a/templates/standalone/datepicker.julius b/templates/standalone/datepicker.julius index f056b5062..640824a46 100644 --- a/templates/standalone/datepicker.julius +++ b/templates/standalone/datepicker.julius @@ -6,7 +6,7 @@ document.addEventListener('DOMContentLoaded', function() { enableTime: true, altInput: true, altFormat: "j. F Y, H:i", - dateFormat: "Y-m-d H:i", + dateFormat: "Y-m-dTH:i", time_24hr: true }, d: {