WordPress.org

Make WordPress Core

Opened 4 months ago

Last modified 4 months ago

#26502 new enhancement

Dashboard Activity dates conditionally need the year

Reported by: GaryJ Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 3.8
Component: Administration Keywords: has-patch 3.9-early
Focuses: Cc:

Description

If you import the Theme Unit Test data, one of the posts is scheduled for Jan 1st 2050. The Dashboard Activity widget doesn't indicate what year this is scheduled for though, and leaves the date as ambiguous - I suspect most people would assume it would be in a few weeks time, given no other information. The same would apply if the Recent Activity doesn't have a limit on it, where the last post was more than a year ago.

Since these might be moving towards edge cases compared to activity on a lot of sites, I'd like to see a year included only if the timestamp is more than 1 year before or after the current date (rather than on each date).

Screenshots included for clarification.

Attachments (4)

dashboard-activity-missing-year.png (5.3 KB) - added by GaryJ 4 months ago.
Trunk - years not shown on dashboard activity widget.
dashboard-activity-included-year.png (5.4 KB) - added by GaryJ 4 months ago.
Suggestion - include years where timestamp is more than 1 year before or after the current time.
26502.diff (774 bytes) - added by GaryJ 4 months ago.
Show date if timestamp difference is greater than 1 year
26502-alt.diff (798 bytes) - added by GaryJ 4 months ago.
Show year if timestamp has different year to now.

Download all attachments as: .zip

Change History (8)

GaryJ4 months ago

Trunk - years not shown on dashboard activity widget.

GaryJ4 months ago

Suggestion - include years where timestamp is more than 1 year before or after the current time.

comment:1 SergeyBiryukov4 months ago

  • Component changed from General to Administration

comment:2 johnbillion4 months ago

Probably the most logical thing to do is to display the year if the post date's year is not the same as the current year.

GaryJ4 months ago

Show date if timestamp difference is greater than 1 year

GaryJ4 months ago

Show year if timestamp has different year to now.

comment:3 GaryJ4 months ago

Two suggestions offered:

  • 26502.diff goes with a difference in the timestamp of more than one year, as per original ticket description.
  • 26502-alt.diff goes with johnbillion's (probably more sensible) suggestion of showing the year if it's not the same as the current one.

comment:4 SergeyBiryukov4 months ago

  • Keywords has-patch 3.9-early added
  • Milestone changed from Awaiting Review to Future Release
Note: See TracTickets for help on using tickets.