Bug with timestamps?

I’m here on meta looking at the Bugs category for posts older than 24 hours. It’s currently 4:26 PM ET.

Currently looking at this post:

A mouseover shows a timestamp for the last post as Feb 19, 2020, 4:03 AM.

That’s 2 days 12 hours and 23 minutes ago. Yet the last post column on /bug shows 3d ago. If I go into the topic, the last post shows the same timestamp, as well as 3d.

Is that by design or a bug?

1 Like

It is by design. You can see the method that is used to calculate the age of the post here: https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/lib/formatter.js.es6#L160.

5 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.