Problem/Motivation

The header of the diff shows the revision date and time in the short format. This format should be configurable.

Issue fork diff-3311372

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

jurgenhaas created an issue. See original summary.

jurgenhaas’s picture

Status: Active » Needs review
pappis’s picture

This would be greatly appreciated, mainly because the short date format shows the month before the day, which is not eu compliant.

The same format should apply to the revisions list page node/{{nid}}/revisions.

sime’s picture

It should not be "short" by default. When talking about dates, the way to get short is to remove the time. Drupal revisions inherently *need* time because they are so chatty.

Edit: good patch either way, i'll be road-testing it soon on a site.

jurgenhaas’s picture

Just updated the MR to cover 2 new places where the hard coded format was used and also added a field diff plugin for date fields.

jurgenhaas’s picture

I've rebased the MR to cover the latest changes in the dev branch.

the_g_bomb’s picture

Version: 8.x-1.x-dev » 2.x-dev

Updating to use latest branch

acbramley’s picture

Status: Needs review » Needs work
Issue tags: +Needs tests

Lots of work needed here, we'll also need tests and an update hook to set the new config.

acbramley changed the visibility of the branch 2.x to hidden.

acbramley changed the visibility of the branch 8.x-1.x to hidden.

acbramley changed the visibility of the branch 3311372-make-date-format to hidden.