# Fixing a topic timestamp change gone wrong?

**URL:** https://meta.discourse.org/t/fixing-a-topic-timestamp-change-gone-wrong/406330
**Category:** Support
**Created:** [June 28, 2026, 9:38pm UTC](https://meta.discourse.org/t/fixing-a-topic-timestamp-change-gone-wrong/406330 "2026-06-28T21:38:12Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [June 28, 2026, 9:57pm UTC](https://meta.discourse.org/t/fixing-a-topic-timestamp-change-gone-wrong/406330/2 "2026-06-28T21:57:17Z")

</div>

I think this should still work:

> [@Editing post date?](https://meta.discourse.org/t/editing-post-date/19506/5):
>
> Here’s how to do it via the command line # ssh into your server cd /var/discourse # or /var/docker on pre-V1 install ./launcher enter app rails c post = Post.find\_by(id: 1234) post.created\_at = DateTime.new(2001,2,3,0,0,42) # year, month, day, hour, minute, seconds post.save

This might be helpful too, because finding the post ID is more difficult than the topic ID and post number:

> [@Editing post date?](https://meta.discourse.org/t/editing-post-date/19506/16?silent=true):
>
> By the way, you can also find the post by the topic id and post number which are perhaps easier to read from the forum via the share link instead of inspecting source: Post.find\_by(topic\_id: 123, post\_number: 45)

As always when using the Rails console: it’s a good idea to make a backup first, just to be safe.

---

_[View the full topic](https://meta.discourse.org/t/fixing-a-topic-timestamp-change-gone-wrong/406330)._
