trentrichardson / jQuery-Timepicker-Addon

Adds a timepicker to jQueryUI Datepicker
http://trentrichardson.com/examples/timepicker/
MIT License
2.66k stars 1.05k forks source link

When i use altField getDate does not return time part #770

Open turchaninovm opened 9 years ago

turchaninovm commented 9 years ago

When i'm using altField option $(target) in the code below is having date only value. It means that i will have never got date.setHours(tp_inst.hour, tp_inst.minute, tp_inst.second, tp_inst.millisec);... and getDate will return date value only because of (date && tp_inst._parseTime($(target).val(), tp_inst.timeOnly)) ==false Line 1693: //

... if (date && tp_inst._parseTime($(target).val(), tp_inst.timeOnly)) { date.setHours(tp_inst.hour, tp_inst.minute, tp_inst.second, tp_inst.millisec); date.setMicroseconds(tp_inst.microsec); ...

RizziCR commented 9 years ago

Hi, i add a pull Request for it ;)