Skip to content

Commit

Permalink
Javascript Date object returns month between 0 and 11
Browse files Browse the repository at this point in the history
  • Loading branch information
stevegeek authored and Ross Boucher committed Jun 6, 2010
1 parent c8759ba commit 935f108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Objective-J/CPLog.js
Expand Up @@ -105,7 +105,7 @@ var _CPFormatLogMessage = function(aString, aLevel, aTitle)

if (typeof exports.sprintf == "function")
return exports.sprintf("%4d-%02d-%02d %02d:%02d:%02d.%03d %s%s: %s",
now.getFullYear(), now.getMonth(), now.getDate(),
now.getFullYear(), now.getMonth() + 1, now.getDate(),
now.getHours(), now.getMinutes(), now.getSeconds(), now.getMilliseconds(),
aTitle, aLevel, aString);
else
Expand Down

0 comments on commit 935f108

Please sign in to comment.