From 22925bb24d7c03dce1579a0fc201c9e5e55e2ff6 Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Mon, 7 Sep 2020 13:15:33 +0000 Subject: [server/ipxebuilder] Fixed month in console output. Thx JavaScript for nothing! --- server/lib/shell.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/lib/shell.js b/server/lib/shell.js index 4f315e4..77c5dcc 100644 --- a/server/lib/shell.js +++ b/server/lib/shell.js @@ -174,7 +174,7 @@ function sendToLog (msg, status, log = true) { const date = new Date() const pad = x => x < 10 ? '0' + x : x var dateString = '[' + date.getFullYear() + '-' - dateString += pad(date.getMonth()) + '-' + dateString += pad(date.getMonth() + 1) + '-' dateString += pad(date.getDate()) + ' ' dateString += pad(date.getHours()) + ':' dateString += pad(date.getMinutes()) + ':' -- cgit v1.2.3-55-g7522