Skip to content
Snippets Groups Projects
Commit 50467637 authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Fix date picker with some date formats

parent d8ce4489
No related branches found
No related tags found
1 merge request!275Resolve "Selecting date in substitutions list yields NaN and 404"
Pipeline #94364 passed
......@@ -12,6 +12,7 @@ Unreleased
Fixed
~~~~~
* The date picker did not work with some date formats.
* Send notifications for changes done via daily lessons page.
* Lessons with same subject and groups but different teachers were not considered equal.
......
......@@ -10,10 +10,7 @@ function loadNew() {
}
function onDateChanged() {
var str = $("#date").val();
var split = str.split(".");
activeDate = new Date(split[2], split[1] - 1, split[0]);
updateDatepicker();
activeDate = M.Datepicker.getInstance($("#date")).date;
loadNew();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment