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

"Today" always returns date + time, even when time is disabled #934

Open AleFons opened 6 years ago

AleFons commented 6 years ago

I have a few forms for picking a date where the time part is disabled and this works fine if a day is picked from the calendar, but when selecting today, the result has date and time; as I also use maskedInput so the field can only accept a valid date format, the today button fails to work.

I understand my particular problem could be solved by processing the maskedInput better, but it seems like there's an inconsistency in design on the today button; why should it return the time part even when it's otherwise disabled?