Fix daylight savings by mliberato

This commit is contained in:
Trent 2011-10-18 08:53:32 -04:00
parent fc29bd7277
commit 5ee53c21b1

View file

@ -859,8 +859,8 @@ $.extend(Timepicker.prototype, {
// update our input with the new date time.. // update our input with the new date time..
//######################################################################## //########################################################################
_updateDateTime: function(dp_inst) { _updateDateTime: function(dp_inst) {
dp_inst = this.inst || dp_inst, dp_inst = this.inst || dp_inst;
dt = new Date(dp_inst.selectedYear, dp_inst.selectedMonth, dp_inst.selectedDay), var dt = $.datepicker._daylightSavingAdjust(new Date(dp_inst.selectedYear, dp_inst.selectedMonth, dp_inst.selectedDay)),
dateFmt = $.datepicker._get(dp_inst, 'dateFormat'), dateFmt = $.datepicker._get(dp_inst, 'dateFormat'),
formatCfg = $.datepicker._getFormatConfig(dp_inst), formatCfg = $.datepicker._getFormatConfig(dp_inst),
timeAvailable = dt !== null && this.timeDefined; timeAvailable = dt !== null && this.timeDefined;