timePicker starts on 00:00 when minDate is set
As the title says.
F.e if I set minDate to new Date() and its 5 o'clock I want to start at 5 o'clock to scroll my time. Starting at 0 makes no sense as I can scroll the time back to f.e. 4 o'clock and so my entered time is today 4:00 although minDate is set to now and now its today 5:00.
Time selecting should be so intelligent that it did not allow selecting a time before now if I set minDate to new Date().
Currrently using the datepicker for a callback formular where the user should not be allowed to select a time in the past.
Hi, this problem is caused by Picker.Date -> var isUnavailable = function(type, date, options){ it does : if (!minDate && !maxDate && !availableDates) return false; date.clearTime();
suggested fix : replace in renderers.days : if (isUnavailable('date', date, options)) element.addClass('unavailable'); with if (isUnavailable('date', date.clone(), options)) element.addClass('unavailable');
This works partially if you don't have _timeWheelStep_ set. Can you also find a solution with _timeWheelStep: 15? Additionaly it did not prevent to set the hour lower than _now.
Having the same issue here. I previously used 2 dropdowns and dynamically generated the possible hour and minute options.
Seems like a difficult problem to solve.
Currently you can also just manually enter a value which is greater than 23 hours. So the whole limit of time input is kinda moot.