fix: correct month in log output

This commit is contained in:
2018-10-25 13:05:31 -07:00
parent cb8031e3b7
commit 07288bee33

View File

@@ -11,7 +11,7 @@ const zeroPad = (str, len) => {
const getTimestamp = () => {
const d = new Date();
return `${[d.getFullYear(), zeroPad(d.getMonth(), 2), zeroPad(d.getDate(), 2)].join('/')} ${[
return `${[d.getFullYear(), zeroPad(d.getMonth() + 1, 2), zeroPad(d.getDate(), 2)].join('/')} ${[
zeroPad(d.getHours(), 2),
zeroPad(d.getMinutes(), 2),
zeroPad(d.getSeconds(), 2),