# Incorrect posts timestamp after scheduled publish (topic timer)

**URL:** https://meta.discourse.org/t/incorrect-posts-timestamp-after-scheduled-publish-topic-timer/62958
**Category:** Bug
**Tags:** topic-timers
**Created:** [May 18, 2017, 4:01pm UTC](https://meta.discourse.org/t/incorrect-posts-timestamp-after-scheduled-publish-topic-timer/62958 "2017-05-18T16:01:27Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Maciej\_Wiercioch](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maciej_wiercioch/32/121014_2.png) [@Maciej\_Wiercioch](https://meta.discourse.org/u/Maciej_Wiercioch)
#### Post date: [May 18, 2017, 4:01pm UTC](https://meta.discourse.org/t/incorrect-posts-timestamp-after-scheduled-publish-topic-timer/62958/1 "2017-05-18T16:01:27Z")

</div>

Hello 🙂

Yesterday we have posted our first topic that was published using _topic timer_ feature ([https://discuss.codecademy.com/t/challenge-word-transformation/84306/5](https://discuss.codecademy.com/t/challenge-word-transformation/84306/5)). The topic was prepared in the category restricted to the `TL >= 3`, and published in the publicly accessible category.

There were some posts in this discussion and they were successfully transferred, but something went wrong. Time indicator next to the posts created before auto publishing always shows `1m`. And the timestamp shows that post was created in the future:

 ![](https://global.discourse-cdn.com/meta/original/3X/9/c/9cc4d78ff4d3f2d4f348e274fbd0f185aab419ad.png)

I expected that all posts will have the same creation date as the topic itself.

Thanks!

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 18, 2017, 7:51pm UTC](https://meta.discourse.org/t/incorrect-posts-timestamp-after-scheduled-publish-topic-timer/62958/2 "2017-05-18T19:51:44Z")

</div>

Is this a bug @tgxworld?

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [May 18, 2017, 11:32pm UTC](https://meta.discourse.org/t/incorrect-posts-timestamp-after-scheduled-publish-topic-timer/62958/4 "2017-05-18T23:32:28Z")

</div>

It does seem like a pretty weird behaviour to me. Based on past discussions, I think we wanted to ensure things didn’t seem out of order so we allowed posts to be moved in the future. Unfortunately, our client side doesn’t display posts in the future very well.

[https://meta.discourse.org/t/update-changing-timestamp-through-ui/29464/37?u=tgxworld](https://meta.discourse.org/t/update-changing-timestamp-through-ui/29464/37)

[https://meta.discourse.org/t/update-changing-timestamp-through-ui/29464/25?u=tgxworld](https://meta.discourse.org/t/update-changing-timestamp-through-ui/29464/25)

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [May 18, 2017, 11:55pm UTC](https://meta.discourse.org/t/incorrect-posts-timestamp-after-scheduled-publish-topic-timer/62958/5 "2017-05-18T23:55:48Z")

</div>

@codinghorror I think for publish to category, we should just reset all the timestamps of posts in the topic instead of calculating/applying the time differences to the subsequent posts since publish to category is always going to result in timestamps being in the future.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 19, 2017, 12:15am UTC](https://meta.discourse.org/t/incorrect-posts-timestamp-after-scheduled-publish-topic-timer/62958/6 "2017-05-19T00:15:38Z")

</div>

Whatever is easiest and works is fine by me!

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [May 22, 2017, 8:17am UTC](https://meta.discourse.org/t/incorrect-posts-timestamp-after-scheduled-publish-topic-timer/62958/7 "2017-05-22T08:17:11Z")

</div>

Fixed in

[https://github.com/discourse/discourse/commit/238a15630023897b4cbc851ac912f098becb31fa](https://github.com/discourse/discourse/commit/238a15630023897b4cbc851ac912f098becb31fa)

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [May 23, 2017, 10:00am UTC](https://meta.discourse.org/t/incorrect-posts-timestamp-after-scheduled-publish-topic-timer/62958/8 "2017-05-23T10:00:08Z")

</div>

This topic was automatically closed after 25 hours. New replies are no longer allowed.
