Permalink
Browse files

Off-by-1 month when coercing a date if the coerced month has fewer da…

…ys than the current month
  • Loading branch information...
Aldaviva committed Jun 1, 2013
1 parent 333d33d commit 4d48b6f18a88452ee34ce9da0c5712b1bac010a7
Showing with 3 additions and 3 deletions.
  1. +1 −1 d8.js
  2. +1 −1 d8.min.js
  3. +1 −1 src/coerce.js
View
2 d8.js
@@ -155,7 +155,7 @@
if ( isNaN( parsers[DAY] ) ) parsers[DAY] = 1;
- date.setYear( parsers[YEAR] ); date.setMonth( parsers[MONTH] ); date.setDate( parsers[DAY] );
+ date.setDate( parsers[DAY] ); date.setYear( parsers[YEAR] ); date.setMonth( parsers[MONTH] );
}
function parse_setTime( date, hr, min, sec, ms ) {
Oops, something went wrong.

0 comments on commit 4d48b6f

Please sign in to comment.