Permalink
Browse files

fixed month number in log

  • Loading branch information...
Igor Urminček
Igor Urminček committed Jan 27, 2011
1 parent 69bd996 commit 0b237f6a7bad055088f595ad6461e030b1294091
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/node-logger.js
View
@@ -48,7 +48,7 @@ function pad2Zeros(number) {
function getDate() {
var now = new Date();
- return now.getFullYear() + '-' + padZero(now.getMonth()) + '-' + padZero(now.getDate()) + ' ' +
+ return now.getFullYear() + '-' + padZero(now.getMonth() + 1) + '-' + padZero(now.getDate()) + ' ' +
padZero(now.getHours()) + ':' + padZero(now.getMinutes()) + ':' + padZero(now.getSeconds()) + '.' + pad2Zeros(now.getMilliseconds());
}

0 comments on commit 0b237f6

Please sign in to comment.