Calendar: Use day of the month instead day of the week in setMonth

Fixes $.ui.calendarDate tests.
This commit is contained in:
Felix Nagel 2015-08-26 18:06:18 +02:00
parent 9c88ac943b
commit 430715b206

2
external/date.js vendored
View File

@ -75,7 +75,7 @@ $.extend( _Date.prototype, {
// the new date will me May 1. We will honor the month the user wants to set and if and overflow
// occurs, set to last day of month.
var date = this.dateObject,
days = date.getDay(), year = date.getFullYear();
days = date.getDate(), year = date.getFullYear();
if ( days > this.daysInMonth( year, month ) ) {
// Overflow