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

The picker stopped working. #421

Open
riiight opened this issue Feb 8, 2023 · 1 comment
Open

The picker stopped working. #421

riiight opened this issue Feb 8, 2023 · 1 comment

Comments

@riiight
Copy link

riiight commented Feb 8, 2023

I don't know when this happened, but the 12h format picker has just stopped working in Chrome. It may have to do with a Chrome update. I'm using the latest version (Version 110.0.5481.78 (Official Build) (64-bit)). It seems to still be working in Firefox and Edge.

You can see this on the demo (https://agranom.github.io/ngx-material-timepicker/). Just try picking any time under "Simple timepicker settings" in the "12hr format" box. It will say "Invalid DateTime".

@pablomgs3
Copy link

I've spent the whole day trying to fix this myself but the problem is only happening on chrome. The issue seems to be related with chrome's locale format and how luxon parses the locale.

As a workaround, you can switch to the 24hr format in your input [format]="24"

Hope this helps until @Agranom can find a fix for this.

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

2 participants