WordPress.org

Make WordPress Core

Opened 18 months ago

Last modified 18 months ago

#23227 new defect (bug)

Properly reflect date and time formats throughout admin area

Reported by: bananastalktome Owned by:
Milestone: Awaiting Review Priority: normal
Severity: trivial Version: 3.5
Component: Date/Time Keywords: ui-feedback dev-feedback has-patch
Focuses: Cc:

Description

I have noticed several places in the admin area where the time & date formats set on the General Settings screen are not reflected. For example, on Page Edit, revisions have a hardcoded date format of 'j F, Y @ G:i' and ajax autosaves use 'g:i:s a' to show the "Draft Saved at" time (of note is the 24 hour vs 12 hour time). The "Last Edited By _ on _" time does properly use the time & date format options.

I have included a patch for the two examples above (comments/critiques welcomed), but there were a few others I noticed that may be somewhat more involved to fix. These include:

  • Dates shown in the "Date" column of list tables (both the displayed and title text)
  • "Published on:" date/time for pages (this may be tricky since editing the published time uses a 24-hour time format)
  • "Uploaded on:" date/time shown in 'Save' metabox on Media edit screen

And there are probably other places I have missed as well.

Obviously somewhat low priority compared to other issues (and may be enhancement rather than defect), but I figured I'd bring it here and see what others thought.

Attachments (1)

patch1.diff (1.8 KB) - added by bananastalktome 18 months ago.

Download all attachments as: .zip

Change History (4)

bananastalktome18 months ago

comment:1 rmccue18 months ago

  • Keywords has-patch added

comment:2 follow-up: johnbillion18 months ago

This has been discussed several times in the past and comes down to context. See #2601, #3767.

comment:3 in reply to: ↑ 2 bananastalktome18 months ago

  • Severity changed from minor to trivial

Replying to johnbillion:

This has been discussed several times in the past and comes down to context. See #2601, #3767.

Thanks for the ticket links, I hadn't looked back that far in trac and I don't mean to rehash these discussions if they are considered final (though they were 6+ years ago). I read through them and mostly agree, since potentially showing wordy 'F j, Y' or 'l, F j, Y' formatted dates in the Date column for every row of a crowded list-table would be insane.

Also, since the http://codex.wordpress.org/Settings_General_Screen page (linked from the General Settings screen help tab) does note that the date/time formats do not apply to the admin screens, that may be enough explanation.

To keep with consistency, should the time/date format options be ignored below the WYSIWYG editor on Edit Post pages for the "Last Edited By USER on _" time since it's ignored for the "Draft Saved at" time directly preceding it? Or should we use it in both places?

Note: See TracTickets for help on using tickets.