Skip to content
This repository was archived by the owner on Jun 21, 2022. It is now read-only.

12 Hour AM button doesn't work #33

Open
stephenycchang opened this issue Oct 29, 2014 · 6 comments
Open

12 Hour AM button doesn't work #33

stephenycchang opened this issue Oct 29, 2014 · 6 comments

Comments

@stephenycchang
Copy link

Automatically outputs PM.

var input = $('#time');
input.clockpicker({
autoclose: true,
twelvehour: true
});

@princeofnaxos
Copy link

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.

@JordyMoos
Copy link

The automatic PM is fixed here: #38

@glrodasz
Copy link

glrodasz commented Feb 3, 2015

Anyone has the same problem but in a modal dialog? When I click the AM/PM button the clockpicker get closed.

@ChandanNadig
Copy link

I faced a similar problem when used in a modal. Setting autoclose:'true' solved only half of the problem. It takes pm by default

@clay-morgan
Copy link

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.

@JStrebeyko
Copy link

@JordyMoos thank you big time, pal

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

No branches or pull requests

7 participants