Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seems to have trouble with 24h format #105

Open
alexCea opened this issue Aug 9, 2017 · 2 comments
Open

seems to have trouble with 24h format #105

alexCea opened this issue Aug 9, 2017 · 2 comments

Comments

@alexCea
Copy link

alexCea commented Aug 9, 2017

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 });

@laaposto
Copy link

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/

@RHSaliya
Copy link

RHSaliya commented Jan 22, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants