How to change topic date after import

To follow Jon’s suggestion, this is the Rails console version.

cd /var/discourse
./launcher enter app
rails c

Then, for a specific topic:

TopicTimestampChanger.new(topic: Topic.with_deleted.find(TOPIC_ID), timestamp: Time.now()).change!

For all topics without conditions:

Topic.find_each do |topic| 
	TopicTimestampChanger.new(topic: topic, timestamp: Time.now()).change!  
end