Skip to content

Commit

Permalink
Datepicker: Account for daylight saving when calculating number of da…
Browse files Browse the repository at this point in the history
…ys in a month. Fixes #6978 - In Calender for march 2011 dates showing till 5th only.

Thanks jomyjohn
  • Loading branch information
scottgonzalez committed Feb 16, 2011
1 parent c94ec23 commit c44818f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.datepicker.js
Expand Up @@ -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. */
Expand Down

0 comments on commit c44818f

Please sign in to comment.