trentrichardson/jQuery-Timepicker-Addon — Issue #288: Error when using option 'minDate' with hours and minutes as well
Author: marcospallanzani
Created: 2011-12-22 15:54:59+00:00
State: open

Hello,

I'm using the following datetime picker configuration:

$('#dtpicker').datetimepicker({
appendText: '(Y-M-D h:m)',
timeFormat: 'hh:mm',
dateFormat: 'yy-mm-dd',
minDate: new Date(2011, 12 - 1, 22, 8, 45, 0),
stepMinute: 5,
hourGrid: 4,
minuteGrid: 10
});

So, I basically create a datetime picker using a minDate with hours and minutes as well. Every thing apparently works fine but if I choose an hour greater than my minimum one (8h), let's say 9h, the minute time bar is not updated and the minimum minutes range '45min->59min' is still displayed.

Logically, I should have 00mins->59mins for all hours different than the minimum one.

Actually, in order to update the minutes bar, I have to click on the date that is selected (in my case, the 22nd of december).

Regards,

Marco.