Skip to content

Commit 452e7e9

Browse files
Perm fix for daylight savings. The user is setting the time, its not programatically determined as in datepicker
1 parent 6ab4dde commit 452e7e9

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -675,15 +675,6 @@ $.datepicker._setTime = function(inst, date) {
675675
}
676676
};
677677

678-
//#######################################################################################
679-
// datepicker doesn't care about hours.. we do.. leave dp alone this time..
680-
//#######################################################################################
681-
$.datepicker._daylightSavingAdjustDateTime = function(date) {
682-
if (!date) return null;
683-
date.setHours(date.getHours() > 12 ? date.getHours() + 2 : date.getHours());
684-
return date;
685-
};
686-
687678
//#######################################################################################
688679
// override setDate() to allow getting time too within Date object
689680
//#######################################################################################
@@ -708,7 +699,6 @@ $.datepicker._getDate = function(inst) {
708699
return startDate = (!inst.currentYear || (inst.input && inst.input.val() == '')) ?
709700
null :
710701
(new Date(inst.currentYear, inst.currentMonth, inst.currentDay, tp_inst.hour, tp_inst.minute, tp_inst.second));
711-
//this._daylightSavingAdjustDateTime(new Date(inst.currentYear, inst.currentMonth, inst.currentDay, tp_inst.hour, tp_inst.minute, tp_inst.second));
712702
else return $.datepicker._base_getDate(inst);
713703
};
714704

0 commit comments

Comments
 (0)