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

Displays 12:30am as 00:30am #90

Open
andrewhl opened this issue Nov 4, 2021 · 9 comments
Open

Displays 12:30am as 00:30am #90

andrewhl opened this issue Nov 4, 2021 · 9 comments

Comments

@andrewhl
Copy link

andrewhl commented Nov 4, 2021

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.

Screen Shot 2021-11-04 at 12 15 12 AM

Screen Shot 2021-11-04 at 12 15 06 AM

How can I achieve this?

@TobyMosque
Copy link
Owner

what extension/version do u're using?

@toby.mosque/qdatetimepicker (compatible with v2)
qdatetimepicker (compatible with v1)

@andrewhl
Copy link
Author

andrewhl commented Nov 4, 2021

qdatetimepicker. Is this issue resolved in v2? Because I am planning to upgrade to quasar v2 soon anyway.

@TobyMosque
Copy link
Owner

probably not, but i need to know where to look first.

@hawkeye64
Copy link
Collaborator

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

@andrewhl
Copy link
Author

andrewhl commented Nov 6, 2021

@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?

@hawkeye64
Copy link
Collaborator

Did you try entering 24?

@andrewhl
Copy link
Author

andrewhl commented Nov 6, 2021

@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.

@andrewhl
Copy link
Author

@TobyMosque Hi there. Any word on this one?

@TobyMosque
Copy link
Owner

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.

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