app-extension-qdatetimepicker
app-extension-qdatetimepicker copied to clipboard
Displays 12:30am as 00:30am
Even in the demo if I select 12:30 with either AM or PM, it displays as 00:30. I need to be able to display the time as 12:30 whether AM or PM, as I am using 12h time.


How can I achieve this?
what extension/version do u're using?
@toby.mosque/qdatetimepicker (compatible with v2)
qdatetimepicker (compatible with v1)
qdatetimepicker. Is this issue resolved in v2? Because I am planning to upgrade to quasar v2 soon anyway.
probably not, but i need to know where to look first.
This is sometimes browser-dependent.
Go here: https://codepen.io/Hawkeye64/pen/VwzXwXK
Try different browsers. 24
is not a valid value for an hour, but 00
is. The closest to get what you want is to use am/pm and specify 12:03 am
@hawkeye64 Hi. I can reproduce the issue on the latest versions of Chrome, Firefox, and Safari. Doesn't seem like a browser-specific issue.
My apologies, but I'm not understanding your response. What do you mean use 'am/pm' and specify 12:03am? I'm using the am/pm in the qdatetimepicker component already. I'm also not clear on your codepen. I see you've included an input field with a time attribute but please can you clarify how this applies to the bug in question?
Did you try entering 24?
@hawkeye64 Yes? I'm still not understanding the relevance. This is not a function of anything I am or am not doing; this is an issue with the native functionality with this component. No 12h digital clock should display 12:30am/pm as 00:30.
@TobyMosque Hi there. Any word on this one?
I'll take a look at this, but there are a lot of conversions from/to ISO ( and the 12 thing is just unnatural - how 12 "pm" comes before 1 "pm" ?), so this will take quite a while to adjust the functions.