-
Notifications
You must be signed in to change notification settings - Fork 533
12 Hour AM button doesn't work #33
Comments
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: #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 |
Automatically outputs PM.
var input = $('#time');
input.clockpicker({
autoclose: true,
twelvehour: true
});
The text was updated successfully, but these errors were encountered: