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:
parent
09d40c508a
commit
726756bdd5
|
@ -169,8 +169,8 @@ var dateParsePatterns = [
|
||||||
handler: function(bits) {
|
handler: function(bits) {
|
||||||
var d = new Date();
|
var d = new Date();
|
||||||
d.setYear(parseInt(bits[1]));
|
d.setYear(parseInt(bits[1]));
|
||||||
d.setDate(parseInt(bits[3], 10));
|
|
||||||
d.setMonth(parseInt(bits[2], 10) - 1);
|
d.setMonth(parseInt(bits[2], 10) - 1);
|
||||||
|
d.setDate(parseInt(bits[3], 10));
|
||||||
return d;
|
return d;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue