Problem/Motivation
The date format in the "Authored on" field in the node edit form is using US format:
07/23/2024
Steps to reproduce
Edit a node and see that it is using US format.
Proposed resolution
Use ISO 8601 date and time format in date pickers, for example in the node edit form field "Authored on"
Now:
07/23/2024
Suggested format:
2024-07-23
Remaining tasks
Update the format in the date picker for "Authored on" field in the node edit form and other relevant forms to use ISO 8601 date and time format:
YYYY-MM-DD resulting in "2024-07-23"
https://www.iso.org/iso-8601-date-and-time-format.html
See also https://www.drupal.org/docs/develop/standards/date-formats moved to https://www.drupal.org/docs/develop/creating-modules/date-formats.
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3467829
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
ressaComment #4
quietone commentedI want to clarify that this date format is not a Drupal Coding Standard. The documentation page, https://www.drupal.org/docs/develop/standards/date-formats, is in the Coding Standards pages so it may appear that it is such as standard but it is not. To be a Drupal Coding Standard changes are to go through the process described on the Coding Standards project page and that hasn't happened for this.
I just don't want people reading this issue to think it is a Drupal Coding Standard.
Comment #5
ressaThanks for the feedback @quietone, I removed mentions of standard in the text and moved the page to https://www.drupal.org/docs/develop/creating-modules/date-formats.
Comment #6
ressaI have created #3467914: Define a standard for Date formats to get a Drupal Coding Standard.
Comment #7
annmarysruthy commentedI guess this issue can be fixed under https://www.drupal.org/project/drupal/issues/3467829 .
Comment #8
ressa@annmarysruthy: But that is this issue ...
Comment #9
annmarysruthy commented@ressa Sorry I gave the wrong link. correct issue: https://www.drupal.org/project/drupal/issues/2936268
Comment #10
ressaThanks! I do see an overlap between this issue and #2936268: Date picker only works with US date and time formats ...
But I propose a simpler solution here, simply using ISO 8601 format, with no configuration options.
Maybe that other issue stalled, because it was trying to do too much?