diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-02-16 13:15:14 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-02-16 13:16:00 -0500 |
commit | 9162679e1589e6883cee0ec462bce5e20ef47ec7 (patch) | |
tree | 692f16bebaad39a57e4f4705684e9f8982a1ec2a | |
parent | ab7a5b441aab8722429f8333bf8524fea4b00374 (diff) | |
download | jquery-ui-9162679e1589e6883cee0ec462bce5e20ef47ec7.tar.gz jquery-ui-9162679e1589e6883cee0ec462bce5e20ef47ec7.zip |
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 c44818fccaeb4f41fdb8b8a00662169a4258b78c)
-rw-r--r-- | ui/jquery.ui.datepicker.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index ff6ebad52..c23984530 100644 --- a/ui/jquery.ui.datepicker.js +++ b/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. */ |