mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Datepicker: Account for daylight saving when calculating number of days in a month. Fixes #6978 - In Calender for march 2011 dates showing till 5th only.
Thanks jomyjohn
(cherry picked from commit c44818fcca
)
This commit is contained in:
parent
ab7a5b441a
commit
9162679e15
2
ui/jquery.ui.datepicker.js
vendored
2
ui/jquery.ui.datepicker.js
vendored
@ -1656,7 +1656,7 @@ $.extend(Datepicker.prototype, {
|
||||
|
||||
/* Find the number of days in a given month. */
|
||||
_getDaysInMonth: function(year, month) {
|
||||
return 32 - new Date(year, month, 32).getDate();
|
||||
return 32 - this._daylightSavingAdjust(new Date(year, month, 32)).getDate();
|
||||
},
|
||||
|
||||
/* Find the day of the week of the first of a month. */
|
||||
|
Loading…
Reference in New Issue
Block a user