fix typo and logging bug

This commit is contained in:
Asraelite 2016-03-28 11:29:28 +01:00
parent c5972031ac
commit 2ae3d43354
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ This is a stupid little game where you fly around and bump into asteroids and st
Clone the Git repository, install Node.js version 5.6.0 or higher then run `npm install` in the project directory. Clone the Git repository, install Node.js version 5.6.0 or higher then run `npm install` in the project directory.
Make sure that the command `node` links to this Node..js version and not `nodejs`. Make sure that the command `node` links to this Node.js version and not `nodejs`.
###Running ###Running

View file

@ -54,7 +54,7 @@ class ServerInterface {
let d = new Date(); let d = new Date();
let date = let date =
`${pad(d.getUTCFullYear(), 2)}-` + `${pad(d.getUTCFullYear(), 2)}-` +
`${pad(d.getUTCMonth(), 2)}-` + `${pad(d.getUTCMonth() + 1, 2)}-` +
`${pad(d.getUTCDate(), 2)}`; `${pad(d.getUTCDate(), 2)}`;
return 'log/' + date + '.log'; return 'log/' + date + '.log';
} }