Make WordPress Core

Opened 11 years ago

Closed 7 years ago

#23227 closed defect (bug) (wontfix)

Properly reflect date and time formats throughout admin area

Reported by: bananastalktome's profile bananastalktome Owned by:
Milestone: Priority: normal
Severity: trivial Version: 3.5
Component: Date/Time Keywords: has-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 11 years ago.

Download all attachments as: .zip

Change History (6)

#1 @rmccue
11 years ago

  • Keywords has-patch added

#2 follow-up: @johnbillion
11 years ago

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

#3 in reply to: ↑ 2 @bananastalktome
11 years 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?

#5 @karmatosed
7 years ago

  • Keywords has-ui-feedback added; ui-feedback removed
  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

I feel the point about context is right here, I'd be keen to maybe see this closed unless we want to iterate on the context. To me, this feels like a 'won't fix'. That's not saying the discussion in general can't have more conversation though. I'm doing some ui-feedback tag cleanup so marking as that for now. If wrong, please reopen.

Note: See TracTickets for help on using tickets.