Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #2975: dateparse.js now correctly handles the last day of the y…

…ear. Thanks, wangbin@exoweb.net.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4032 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 726756bdd5dc0aaf8ece224a044d11e27b5083da 1 parent 09d40c5
Jacob Kaplan-Moss jacobian authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/admin/media/js/dateparse.js
2  django/contrib/admin/media/js/dateparse.js
View
@@ -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;
}
},
Please sign in to comment.
Something went wrong with that request. Please try again.