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

Default Localisation misses on date format #804

Closed
oskarhek opened this issue Jan 31, 2023 · 3 comments
Closed

Default Localisation misses on date format #804

oskarhek opened this issue Jan 31, 2023 · 3 comments

Comments

@oskarhek
Copy link
Contributor

Describe the bug

Default language is not used for formatting dates

Steps to reproduce the bug

for me the default language is set to NL
In the calendar when I select a date I still get the American notation with starts with a month.
after I select the nl language, it is transformed to day/month/year.

Expected behavior

to see the correct format immediately (day/month/year)

correct
wrong

@krakan
Copy link
Contributor

krakan commented Jan 31, 2023

Yes, that is indeed the intended behavior. As I wrote this piece of code I'll have another go at getting it right but unfortunately "it works for me" ... 😞

Update: Oh dear! I found the error - I've previously detected the issue and cheated in solving it meaning to fix it later and then promptly forgotten about it. The default language is indeed used in our installation - but only if it's Swedish. 😊

@oskarhek
Copy link
Contributor Author

Can see if I can convince people to serve our pages in Swedish :)

@tw4l
Copy link
Member

tw4l commented Jan 31, 2023

Confirmed #805 resolves the issue - with default_locale: fr in config.yaml and no language in request, calendar date is displaying DD/MM/YYYY as expected. Thanks both!

@tw4l tw4l closed this as completed Jan 31, 2023
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