Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Datepicker: Account for daylight saving when calculating number of da…

…ys in a month. Fixes #6978 - In Calender for march 2011 dates showing till 5th only.

Thanks jomyjohn
(cherry picked from commit c44818f)
  • Loading branch information...
commit 9162679e1589e6883cee0ec462bce5e20ef47ec7 1 parent ab7a5b4
@scottgonzalez scottgonzalez authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  ui/jquery.ui.datepicker.js
View
2  ui/jquery.ui.datepicker.js
@@ -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. */
Please sign in to comment.
Something went wrong with that request. Please try again.