Fixed #2975: dateparse.js now correctly handles the last day of the year. Thanks, wangbin@exoweb.net.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4032 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2006-11-07 01:59:46 +00:00
parent 09d40c508a
commit 726756bdd5
1 changed files with 1 additions and 1 deletions

View File

@ -169,8 +169,8 @@ var dateParsePatterns = [
handler: function(bits) {
var d = new Date();
d.setYear(parseInt(bits[1]));
d.setDate(parseInt(bits[3], 10));
d.setMonth(parseInt(bits[2], 10) - 1);
d.setDate(parseInt(bits[3], 10));
return d;
}
},