aeon icon indicating copy to clipboard operation
aeon copied to clipboard

Locale aware not working for me

Open peschu123 opened this issue 5 years ago • 1 comments

Hi,

I'm on chrome "Version 76.0.3809.100 (Official Build) (64-bit)" on Manjaro Linux KDE.

My language setting in chrome:

image

System locale is configured like:

image

But Datepicker shows wrong date/time format:

image

I'm not a web/frontend developer, so please let me know if you need further information. I made a quick check on chrome with windows and this seems to work like expected.

On Firefox & Linux is exactly the same issue as described above with chrome.

peschu123 avatar Mar 05 '20 12:03 peschu123

Hmm, it appears the language is being taken from the System Locale in this case (LANG=en_US.UTF-8), so the US date format is being used. I'm guessing how the JavaScript APIs determine the locale may be browser/platform specific which is unfortunate. You could override the locale using an attribute on the date picker, but then the locale will be fixed for all visitors to the web page.

lamplightdev avatar Mar 05 '20 16:03 lamplightdev