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

Does it works 24hours time format? #1

Open
armandchard opened this issue Mar 2, 2016 · 8 comments
Open

Does it works 24hours time format? #1

armandchard opened this issue Mar 2, 2016 · 8 comments
Assignees

Comments

@armandchard
Copy link

Hi,
I like your work but I need to use the time format 24 hours.
Is it implemented or not?
If yes, how I can use it?

Regards.

@sidaudhi
Copy link
Owner

sidaudhi commented Mar 3, 2016

Will have it implemented soon.

@armandchard
Copy link
Author

Ok nice, I'll watch the project and wait this upfrade. Thank you !

@sidaudhi
Copy link
Owner

This is now available through the format parameter (which expects a JSON object):
You can use military:true for 24 hour format:
<datetimepicker model="datetime2" format="{military:true}"></datetimepicker>

You can alternatively use momentFormat to directly specify the display format using momentFormat:
<datetimepicker model="datetime2" format="{momentFormat:'YYYY'}"></datetimepicker>
For the display format specs, refer to moment.js documentation:
http://momentjs.com/docs/#/query/

@sidaudhi sidaudhi self-assigned this Mar 22, 2016
@armandchard
Copy link
Author

Thx a lot.
I'll try it soon.

@sidaudhi
Copy link
Owner

Great! Do close this issue once you're able to use this feature.

@armandchard
Copy link
Author

It works fine to show the time like I would.
But I thought we can select 24hours in the timepicker but we still need to select AM or PM.
It's not a problem for me but French users of my web app it's not ok :(

@sidaudhi
Copy link
Owner

Right. I'll have to rethink how to accommodate 24 circles in the space of only 12. Maybe another round of concentric circles. I'll think of something for sure.

@armandchard
Copy link
Author

Maybe you can switch hours and minutes. Then add a bubble (hour) between with less space than today. How do you think?

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

No branches or pull requests

2 participants