Revert "♻️ (js) use proper date.format call"

This reverts commit 70424639a0.
This commit is contained in:
Lucas Bickel 2019-08-31 10:15:44 +02:00
parent 306954cbf1
commit de5a0e5349
1 changed files with 10 additions and 1 deletions

View File

@ -20,7 +20,16 @@ function scheduleRefetchEvents(json) {
} }
function makeTimeStamp(date) { function makeTimeStamp(date) {
return date.format('YYYY-MM-DD HH:mm:ss'); var sy, sm, sd, h, m, s, timestamp;
sy = date.getFullYear();
sm = date.getMonth() + 1;
sd = date.getDate();
h = date.getHours();
m = date.getMinutes();
s = date.getSeconds();
timestamp = sy + "-" + pad(sm, 2) + "-" + pad(sd, 2) + " " + pad(h, 2) + ":" + pad(m, 2) + ":" + pad(s, 2);
return timestamp;
} }
function dayClick(date, allDay, jsEvent, view) { function dayClick(date, allDay, jsEvent, view) {