Bug in post date

AI-generated summary

The discussion revolves around a bug in the post date. gauthier initially reported that the post date on the timeline was incorrectly showing as January 1, 1970, despite the correct date being 3 days ago. Mittineague suggested that the issue might be related to Unix time, but gauthier denied making any changes to the post’s ownership or timestamp.

After updating to beta3+20, gauthier noticed another issue where the activity field on the topic list was showing the date of the first post instead of the last post. zogstrip provided a solution to reset the last_posted_at on the topic, which gauthier implemented, fixing the issue on the timeline but not on the homepage.

hi,

I’ve a bug with the post date:

For this post (and only this one), the date in timeline is 1st january 70.
Can i do something?

You can check yourself at http://libertysim.net/t/salut-a-tous/38116/11

Thanks

1개의 좋아요

Are you running the latest version of Discourse?

I don’t know what caused this for you.

But I do recognize “January 1 1970” as a common Unix time problem.

Unix time is the number of seconds that have elapsed since January 1 1970

i.e. a timestamp value of zero is January 1 1970

Did you change ownership of any posts or change timestamp the topic?

@zogstrip, i’m running the version 1.7.0beta3

@Mittineague, no :frowning:

The post date is correct (3days ago), but it is false on the timeline… it’s strange…

2개의 좋아요

And now, beta3+20.

On the topic list: the activity field indicates 5days ago, the date of the first post of the topic, instead of 3days ago (the last one).

Can you ssh into your server and do the following?

cd /var/discourse
./launcher enter app
rails c
Topic.reset_highest(38116)

This should fix the empty last_posted_at on the topic.

Thanks, now it’s works on the timeline (4 days ago) but not in the homepage (always 6days ago instead of 4)