Cms: Consolidate date_format config

Created on 2 Jul 2020  Â·  5Comments  Â·  Source: statamic/cms

Bug Description

We have date_format in system.php and in cp.php. We should probably only have one.

Or maybe it makes sense to have both, but we should confirm why.

Environment

Statamic version: 3.0.0-beta.33

enhancement i18n

Most helpful comment

Please keep open. Related to #1310

All 5 comments

My 1 cent: in the cp the date format should be unique and respect the user defined date format, wherever a date is displayed. We have been struggling with this since statamic2, especially when you want to display the cp in another language than English AND you also want long date formats (with the written day of the week or the written month of the year). By the way, date-pickers should also be adjustable for the first day of the week... I don't quite see any interest in having some dates in one format and others in another format within the app

Absolutely.

I don't see any reason to have two formats, but in case you decide to keep both, please document the choice.

Is there maybe a third place to specify the format? The date picker shows the value in US format, regardless of what the php settings say.

This issue has not had recent activity and has been marked as stale — by me, a robot. Simply reply to keep it open and send me away. If you do nothing, I will close it in a week. I have no feelings, so whatever you do is fine by me.

Please keep open. Related to #1310

Was this page helpful?
0 / 5 - 0 ratings

Related issues

filipac picture filipac  Â·  4Comments

jimblue picture jimblue  Â·  3Comments

ReneWeCode picture ReneWeCode  Â·  3Comments

mattrothenberg picture mattrothenberg  Â·  3Comments

andrewying picture andrewying  Â·  4Comments