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

FR: Option to Set Date Format in the Control Panel #5835

Closed
richhayler opened this issue Mar 24, 2020 · 2 comments
Closed

FR: Option to Set Date Format in the Control Panel #5835

richhayler opened this issue Mar 24, 2020 · 2 comments

Comments

@richhayler
Copy link

It would be great to have an option to specify the date format for entry post and expiry dates displayed when creating a new entry or viewing entries in the entries index.

Currently dates display in the fixed format of MM/DD/YYYY and it would be nice to be able to change this to YYYY/MM/DD or DD/MM/YYYY.

When you are use to viewing dates in a particular format it can take a bit of mental adjustment to remind yourself that within the craftCMS control panel a date displayed as 1/12/2019 for example is the 12th of January not the 1st of December. This has caught me out a number of times.

@brandonkelly
Copy link
Member

Hey Rich,

The date format is based on your user account’s preferred language. If you go to the Preferences tab of your account settings, you can change that to “English (United Kingdom)” for example, which will give you a format of DD/MM/YYYY.

By default the available options are based on the languages we translate the control panel into, but if you want to go with Australian English, you can do that by setting your extraAppLocales config setting to:

'extraAppLocales' => ['en-AU'],

Then you will be able to select “English (Australian)”.

@richhayler
Copy link
Author

Hey Brandon,

Apologies, I completely missed this. Thanks for taking the time to point out the config change and also option for Australian English.

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