bootstrap-ui-datetime-picker icon indicating copy to clipboard operation
bootstrap-ui-datetime-picker copied to clipboard

Datetime value is not considering meridian

Open isaacfi opened this issue 8 years ago • 5 comments

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.

isaacfi avatar Jun 03 '17 05:06 isaacfi

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

raymak23 avatar Jun 09 '17 14:06 raymak23

You got an example? Plunkr?

Gillardo avatar Jun 09 '17 15:06 Gillardo

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?

raymak23 avatar Jun 09 '17 18:06 raymak23

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

isaacfi avatar Jun 10 '17 12:06 isaacfi

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?

raymak23 avatar Jun 10 '17 17:06 raymak23