summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJannik Schönartz2020-09-07 15:15:33 +0200
committerJannik Schönartz2020-09-07 15:15:33 +0200
commit22925bb24d7c03dce1579a0fc201c9e5e55e2ff6 (patch)
tree9dff4ac2959420877ae8104c2caee4bc262b7ca9
parent[webapp] show which permission is missing (diff)
downloadbas-22925bb24d7c03dce1579a0fc201c9e5e55e2ff6.tar.gz
bas-22925bb24d7c03dce1579a0fc201c9e5e55e2ff6.tar.xz
bas-22925bb24d7c03dce1579a0fc201c9e5e55e2ff6.zip
[server/ipxebuilder] Fixed month in console output. Thx JavaScript for nothing!
-rw-r--r--server/lib/shell.js2
1 files changed, 1 insertions, 1 deletions
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()) + ':'