diff --git a/package-lock.json b/package-lock.json index 182e9ff..888c312 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "brikkit", - "version": "1.0.1", + "version": "1.0.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index bb80a72..5150e32 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "brikkit", - "version": "1.0.1", + "version": "1.0.2", "keywords": [], "main": "server.js", "author": "n42k", diff --git a/server.js b/server.js index 2eaad17..04d2ac5 100644 --- a/server.js +++ b/server.js @@ -10,8 +10,12 @@ execSync(`mkdir -p conf`); execSync(`mkdir -p saved`); execSync(`mkdir -p plugins`); -const dateString = (new Date()).toISOString(); -const logFile = `logs/log_${dateString}.txt`; +const iso8601DateString = (new Date()).toISOString(); + +// remove colons from the date string; required for windows +const colonlessDateString = iso8601DateString.split(':').join(''); + +const logFile = `logs/log_${colonlessDateString}.txt`; let stream = fs.createWriteStream(logFile, {flags:'a'}); const oldConsoleLog = console.log;