Ticket #5817 (closed defect (bug): fixed)

Opened 4 years ago

Last modified 4 years ago

Human readable time diff for future posts is off

Reported by: ryan Owned by: anonymous
Priority: normal Milestone: 2.5
Component: Administration Version: 2.5
Severity: normal Keywords: has-patch
Cc: ffemtcj

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

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

Change History

ffemtcj4 years ago

Adds corect tense to time

  • 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'.

comment:2   ryan4 years ago

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

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

comment:3   ryan4 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.