FIX: Show correct dates in topic timelines (PR #13670)

The date shown in topic timeline was one day later if the post at that position was made near midnight. This happened because the days number was rounded down.




Do we actually need the ROUND here? I thought the ::INT was doing it?

I think this is equivalent (but shorter)

        columns << '(EXTRACT(EPOCH FROM AGE(posts.created_at) / 86400)::INT AS days_ago'

You are right about ROUND not being needed here. AGE subtracts from current date 12:00 AM, instead of CURRENT_TIMESTAMP.