Permalink
Browse files

Merge branch 'master' of git://github.com/Aldaviva/d8 into Aldaviva-m…

…aster

* 'master' of git://github.com/Aldaviva/d8:
  Off-by-1 month when coercing a date if the coerced month has fewer days than the current month
  • Loading branch information...
constantology
constantology committed Jun 1, 2013
2 parents 0859e00 + 4d48b6f commit 79e340cad5675b61410e532d688c636833474b8b
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 79e340c

Please sign in to comment.