From de5a0e534935cc66322b35af26884080c37bc7e4 Mon Sep 17 00:00:00 2001 From: Lucas Bickel Date: Sat, 31 Aug 2019 10:15:44 +0200 Subject: [PATCH] Revert ":recycle: (js) use proper date.format call" This reverts commit 70424639a03f43e1eb6ed4b6edbae2a632545f50. --- .../js/airtime/schedule/full-calendar-functions.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/public/js/airtime/schedule/full-calendar-functions.js b/airtime_mvc/public/js/airtime/schedule/full-calendar-functions.js index 0558307e3..831f2705a 100644 --- a/airtime_mvc/public/js/airtime/schedule/full-calendar-functions.js +++ b/airtime_mvc/public/js/airtime/schedule/full-calendar-functions.js @@ -20,7 +20,16 @@ function scheduleRefetchEvents(json) { } 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) {