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

Command icon 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

ressa created an issue. See original summary.

ressa’s picture

Issue summary: View changes

annmarysruthy made their first commit to this issue’s fork.

quietone’s picture

I 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.

ressa’s picture

Issue summary: View changes

Thanks 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.

ressa’s picture

I have created #3467914: Define a standard for Date formats to get a Drupal Coding Standard.

annmarysruthy’s picture

I guess this issue can be fixed under https://www.drupal.org/project/drupal/issues/3467829 .

ressa’s picture

@annmarysruthy: But that is this issue ...

annmarysruthy’s picture

@ressa Sorry I gave the wrong link. correct issue: https://www.drupal.org/project/drupal/issues/2936268

ressa’s picture

Thanks! 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?

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.