Permalink
Browse files

Silly Javascript dates give the month as 0-11 instead of 1-12.

  • Loading branch information...
1 parent dae77ae commit fd6513f2dd1a95f82b1db5cd05f052eb25a8d05b @creationix committed Feb 2, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 build.js
View
@@ -191,7 +191,7 @@ function render(data, next) {
value = date.getDate();
break;
case "%m":
- value = date.getMonth();
+ value = date.getMonth() + 1;
break;
case "%Y":
value = date.getFullYear();

0 comments on commit fd6513f

Please sign in to comment.