Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#5817 closed defect (bug) (fixed)

Human readable time diff for future posts is off

Reported by: ryan's profile ryan Owned by:
Milestone: 2.5 Priority: normal
Severity: normal Version: 2.5
Component: Administration Keywords: has-patch
Focuses: Cc:

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 16 years ago.
Adds corect tense to time

Download all attachments as: .zip

Change History (4)

@ffemtcj
16 years ago

Adds corect tense to time

#1 @ffemtcj
16 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
16 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
16 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.