clockpicker
clockpicker copied to clipboard
12 Hour AM button doesn't work
Automatically outputs PM.
var input = $('#time'); input.clockpicker({ autoclose: true, twelvehour: true });
I think there should not be an option 'twelvehour'. Instead, 'format' would be better. This way, we can support multiple formats, e.g. '10:00' or '10.00', and 'am/pm'. Use 'H:i' for 24-hour notation and 'h:i a' for 12-hour notation.
And of course, when setting the time when using 'AM/PM', it should be clear which hour is selected.
The automatic PM is fixed here: https://github.com/weareoutman/clockpicker/pull/38
Anyone has the same problem but in a modal dialog? When I click the AM/PM button the clockpicker get closed.
I faced a similar problem when used in a modal. Setting autoclose:'true' solved only half of the problem. It takes pm by default
Same here with the modal dialog and autoclose true. I saw someone use that and then provide a completely separate extra button outside of the clockpicker form to change it to AM/PM.
@JordyMoos thank you big time, pal