timepicker icon indicating copy to clipboard operation
timepicker copied to clipboard

seems to have trouble with 24h format

Open alexCea opened this issue 8 years ago • 2 comments

Its not picking up times greater than 12:00. Tested on http://timepicker.co/

$('.timepicker').timepicker({ timeFormat: 'hh:mm', interval: 30, minTime: '6:00', maxTime: '18:00', defaultTime: '11:00', startTime: '10:00', dynamic: true, dropdown: true, scrollbar: true });

alexCea avatar Aug 09 '17 14:08 alexCea

The format of the time string displayed in the input is configured through the timeFormat option. So, if you want 24h format you should use HH:mm not hh:mm as HH stands for 24 hour with leading 0 and hh for 12 hour with leading 0.

See more for configuration here: http://timepicker.co/options/

laaposto avatar Nov 27 '17 11:11 laaposto

It's not working for just HH, I haven't tried with HH:mm.

RHSaliya avatar Jan 22 '21 14:01 RHSaliya