Skip to content

Commit bd5442d

Browse files
apply reported getDate bug
1 parent c9ff800 commit bd5442d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,8 @@
299299
// update our input with the new date time..
300300
//########################################################################
301301
updateDateTime: function(dp_inst, tp_inst) {
302-
var dt = this.$input.datepicker('getDate');
302+
//var dt = this.$input.datepicker('getDate');
303+
var dt = new Date(dp_inst.selectedYear, dp_inst.selectedMonth, dp_inst.selectedDay);
303304
var dateFmt = $.datepicker._get(dp_inst, 'dateFormat');
304305
var formatCfg = $.datepicker._getFormatConfig(dp_inst);
305306
this.formattedDate = $.datepicker.formatDate(dateFmt, (dt === null ? new Date() : dt), formatCfg);

0 commit comments

Comments
 (0)