Permalink
Browse files

minor edit, making the month-parseInt in isoDate actually do its job..

  • Loading branch information...
1 parent b8d4fd6 commit 8173e1776bcd062bf387314738ce9d3039ed6acc @blq blq committed with blq Nov 22, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 MochiKit/DateTime.js
View
@@ -20,7 +20,7 @@ MochiKit.DateTime.isoDate = function (str) {
if (iso.length === 0) {
return null;
}
- var date = new Date(parseInt(iso[0], 10), parseInt(iso[1] - 1, 10), parseInt(iso[2], 10));
+ var date = new Date(parseInt(iso[0], 10), parseInt(iso[1], 10) - 1, parseInt(iso[2], 10));
date.setFullYear(iso[0]);
date.setMonth(iso[1] - 1);
date.setDate(iso[2]);

0 comments on commit 8173e17

Please sign in to comment.