WordPress.org

Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#5817 closed defect (bug) (fixed)

Human readable time diff for future posts is off

Reported by: ryan Owned by:
Milestone: 2.5 Priority: normal
Severity: normal Version: 2.5
Component: Administration Keywords: has-patch
Focuses: Cc:
PR Number:

Description

Manage->Posts says "X days ago" for the human readable time difference. The display code in edit-post-rows.php should use something like "from now" instead of "ago" for future posts.

Attachments (1)

r6787__readable_time.diff (810 bytes) - added by ffemtcj 12 years ago.
Adds corect tense to time

Download all attachments as: .zip

Change History (4)

@ffemtcj
12 years ago

Adds corect tense to time

#1 @ffemtcj
12 years ago

  • Cc ffemtcj added
  • Keywords has-patch added

Added a check to see if the post has already been posted. If it has been, it displays 'ago' and if it is still waiting it displays 'from now'.

#2 @ryan
12 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [6793]) Fix human readable time offset for future posts. Props ffemtcj. fixes #5817

#3 @ryan
12 years ago

Changed the patch a bit to take the absolute value of the time diff and to show "ago" for all posts other than future instead of just for published posts.

Note: See TracTickets for help on using tickets.