From 539ef8daf4a0ef7a2e272b144ea704c55cbfd3dd Mon Sep 17 00:00:00 2001 From: Trent Richardson Date: Mon, 29 Nov 2010 08:45:54 -0500 Subject: [PATCH] fixed setDate --- jquery-ui-timepicker-addon.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jquery-ui-timepicker-addon.js b/jquery-ui-timepicker-addon.js index a19e082..70d4ec2 100644 --- a/jquery-ui-timepicker-addon.js +++ b/jquery-ui-timepicker-addon.js @@ -723,8 +723,12 @@ $.datepicker._setTimeDatepicker = function(target, date, withDate) { //####################################################################################### $.datepicker._base_setDateDatepicker = $.datepicker._setDateDatepicker; $.datepicker._setDateDatepicker = function(target, date) { + var inst = this._getInst(target), + tp_date = new Date(date.getTime()); + + this._updateDatepicker(inst); this._base_setDateDatepicker.apply(this, arguments); - this._setTimeDatepicker(target, date, true); + this._setTimeDatepicker(target, tp_date, true); }; //#######################################################################################