Open
Description
I'm using the show2400 option to enable '24:00' in my timepicker. The timepicker shows correctly, '24:00' appears in the list and can be selected.
$('#EndTime').timepicker({
timeFormat: 'H:i',
minTime: new Date(0, 0, 0, 0, 30, 0),
maxTime: new Date(0, 0, 0, 24, 0, 0),
step: 30,
show2400: true
});
However, when I try to use setTime to set the timepicker to this '24:00' value, it is set to '00:00'. Although '00:00' is not even in the list of allowed values.
$('#EndTime').timepicker('setTime', new Date(0, 0, 0, 24, 0, 0));
So how can I get this '24:00' value programatically selected? This seems like an issue.
As a workaround I can use:
$('#EndTime').val('24:00');