Agranom / ngx-material-timepicker

Material desing timepicker for Angular 6.0+
https://agranom.github.io/ngx-material-timepicker/
MIT License
340 stars 141 forks source link

The picker stopped working. #421

Open riiight opened 1 year ago

riiight commented 1 year ago

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 commented 1 year ago

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.