summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrent <trentdrichardson@gmail.com>2011-10-18 08:53:32 -0400
committerTrent <trentdrichardson@gmail.com>2011-10-18 08:53:32 -0400
commit5ee53c21b1193f612f30c0cff3e97370bd045141 (patch)
treeded348e5fa70479a2af602073757e2a6f76188a3
parentfc29bd727735f71d06fe4acb5fcd1dd75ec054e4 (diff)
downloadjQuery-Timepicker-Addon-5ee53c21b1193f612f30c0cff3e97370bd045141.zip
jQuery-Timepicker-Addon-5ee53c21b1193f612f30c0cff3e97370bd045141.tar.gz
jQuery-Timepicker-Addon-5ee53c21b1193f612f30c0cff3e97370bd045141.tar.bz2
Fix daylight savings by mliberato
-rw-r--r--jquery-ui-timepicker-addon.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jquery-ui-timepicker-addon.js b/jquery-ui-timepicker-addon.js
index 7264cbf..a253b2d 100644
--- a/jquery-ui-timepicker-addon.js
+++ b/jquery-ui-timepicker-addon.js
@@ -859,8 +859,8 @@ $.extend(Timepicker.prototype, {
// update our input with the new date time..
//########################################################################
_updateDateTime: function(dp_inst) {
- dp_inst = this.inst || dp_inst,
- dt = new Date(dp_inst.selectedYear, dp_inst.selectedMonth, dp_inst.selectedDay),
+ dp_inst = this.inst || dp_inst;
+ var dt = $.datepicker._daylightSavingAdjust(new Date(dp_inst.selectedYear, dp_inst.selectedMonth, dp_inst.selectedDay)),
dateFmt = $.datepicker._get(dp_inst, 'dateFormat'),
formatCfg = $.datepicker._getFormatConfig(dp_inst),
timeAvailable = dt !== null && this.timeDefined;