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

Datetime value is not considering meridian #198

Open
isaacfi opened this issue Jun 3, 2017 · 5 comments
Open

Datetime value is not considering meridian #198

isaacfi opened this issue Jun 3, 2017 · 5 comments

Comments

@isaacfi
Copy link

isaacfi commented Jun 3, 2017

When I use this format in directive: datetime-picker="dd/MM/yyyy hh:mm a" It doesn't consider meridian in Datetime value. If the value is: 09/02/2016 02:12 p.m the value is 09/02/2016 02:12 insted of 09/02/2016 14:12.

@raymak23
Copy link

raymak23 commented Jun 9, 2017

For me it works fine. Did you click on PM when you are in time window?

Please see below screenshot.

2017-06-09 10_01_33-all release page - portal

@Gillardo
Copy link
Owner

Gillardo commented Jun 9, 2017

You got an example? Plunkr?

@raymak23
Copy link

raymak23 commented Jun 9, 2017

Only thing I noticed in the original question is that actual attr with format used is datetime-picker="dd/MM/yyyy hh:mm a" and I am using this format datetime-picker="MM/dd/yyyy HH:mm"

Maybe @isaacfi can try this format datetime-picker="dd/MM/yyyy HH:mm a" to see if that fixes his issue?

@isaacfi
Copy link
Author

isaacfi commented Jun 10, 2017

No the issue is not solved using the datetime-picker="dd/MM/yyyy HH:mm a" because HH indicates 24 hours format.

@raymak23
Copy link

raymak23 commented Jun 10, 2017

Okay, but based on your original question I understood that you want 24 hours format? insted of 09/02/2016 14:12.

Can you create Plunkr as @Gillardo stated earlier?

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