Date format change for the New Comments and New Reviews

I’ve just made small change to the formatting of the dates in the New Reviews and New Comments boxes on the left of most pages.

Rather than showing the date and time that the review or comment was posted, the code now works in terms of time difference between the post and the current time. For example, assuming now is 25th May 2006 00:00:

  • “24th May 01:11” becomes “22 hours ago”
  • “22nd May 22:26” becomes “2 days ago”

Dates older than 6 weeks, stay as dates, and lose the time.

Hopefully this will make the dates and times clearer, and will remove any potential confusion about time zones.

Leave a Reply