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

Now button sets invalid date when step is set. #925

Open JanciP opened 6 years ago

JanciP commented 6 years ago

When initializing datetimepicker with, let's say stepMinute:15, clicking on NOW button sets time in the past.

datetimepicker({ controlType: 'select', oneLine: true, timeFormat: 'hh:mm TT z', stepMinute: 15

(e.g. it's 09:23, clicking NOW sets date to 09:20).

Is there any way to force NOW to set the date in the future (with or without taking step into account?)