diff options
author | Simon Rettberg | 2016-09-06 16:01:36 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-09-06 16:01:36 +0200 |
commit | 8584c776d7e2a2c5568e841a27647e83e5f74123 (patch) | |
tree | 513dab7670ecd7b2b935dd7cf14574a6aa949535 /modules-available/exams | |
parent | [exams] Implement autostart checkbox (diff) | |
download | slx-admin-8584c776d7e2a2c5568e841a27647e83e5f74123.tar.gz slx-admin-8584c776d7e2a2c5568e841a27647e83e5f74123.tar.xz slx-admin-8584c776d7e2a2c5568e841a27647e83e5f74123.zip |
[exams] Fix date display on add/edit exam for chosen autostart lecture
Diffstat (limited to 'modules-available/exams')
-rw-r--r-- | modules-available/exams/templates/page-add-edit-exam.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/exams/templates/page-add-edit-exam.html b/modules-available/exams/templates/page-add-edit-exam.html index 74e7d52b..afdb0b71 100644 --- a/modules-available/exams/templates/page-add-edit-exam.html +++ b/modules-available/exams/templates/page-add-edit-exam.html @@ -196,7 +196,7 @@ document.addEventListener("DOMContentLoaded", function () { if (sel.val() === '' || sel.data('inrange')) { $('#lecture-info').text('-'); } else { - $('#lecture-info').text('{{lang_lectureOutOfRange}} (' + slxMoment(sel.data('from')).format('YYYY-MM-DD H:mm') + ' - ' + slxMoment(sel.data('to')).format('YYYY-MM-DD H:mm') + ')'); + $('#lecture-info').text('{{lang_lectureOutOfRange}} (' + slxMoment(sel.data('from') * 1000).format('YYYY-MM-DD H:mm') + ' - ' + slxMoment(sel.data('to') * 1000).format('YYYY-MM-DD H:mm') + ')'); } } |