summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()) + ':'