apply reported getDate bug
This commit is contained in:
parent
c9ff8007fd
commit
bd5442de72
1 changed files with 2 additions and 1 deletions
3
jquery-ui-timepicker-addon.js
vendored
3
jquery-ui-timepicker-addon.js
vendored
|
@ -299,7 +299,8 @@
|
||||||
// update our input with the new date time..
|
// update our input with the new date time..
|
||||||
//########################################################################
|
//########################################################################
|
||||||
updateDateTime: function(dp_inst, tp_inst) {
|
updateDateTime: function(dp_inst, tp_inst) {
|
||||||
var dt = this.$input.datepicker('getDate');
|
//var dt = this.$input.datepicker('getDate');
|
||||||
|
var dt = new Date(dp_inst.selectedYear, dp_inst.selectedMonth, dp_inst.selectedDay);
|
||||||
var dateFmt = $.datepicker._get(dp_inst, 'dateFormat');
|
var dateFmt = $.datepicker._get(dp_inst, 'dateFormat');
|
||||||
var formatCfg = $.datepicker._getFormatConfig(dp_inst);
|
var formatCfg = $.datepicker._getFormatConfig(dp_inst);
|
||||||
this.formattedDate = $.datepicker.formatDate(dateFmt, (dt === null ? new Date() : dt), formatCfg);
|
this.formattedDate = $.datepicker.formatDate(dateFmt, (dt === null ? new Date() : dt), formatCfg);
|
||||||
|
|
Loading…
Add table
Reference in a new issue