# Relative timestamp different for "invited to topic" different than post-time?

**URL:** https://meta.discourse.org/t/relative-timestamp-different-for-invited-to-topic-different-than-post-time/118778
**Category:** Bug
**Created:** [27 mei 2019 om 10:39 UTC](https://meta.discourse.org/t/relative-timestamp-different-for-invited-to-topic-different-than-post-time/118778 "2019-05-27T10:39:42Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Bas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bas/32/294929_2.png) [@Bas](https://meta.discourse.org/u/Bas)
#### Post date: [27 mei 2019 om 10:39 UTC](https://meta.discourse.org/t/relative-timestamp-different-for-invited-to-topic-different-than-post-time/118778/1 "2019-05-27T10:39:42Z")

</div>

![14](https://global.discourse-cdn.com/meta/original/3X/f/5/f50fe0396ce0e3d13ca372115dd1a64cb5d79e0c.png)

Very small bug, but it seems that I was invited (2 days ago) after I responded to a topic (three days ago). In reality I posted some 15 minutes after being invited.

Think the timestamps are being converted differently?

Running `v2.1.5`

---

<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: [27 mei 2019 om 19:01 UTC](https://meta.discourse.org/t/relative-timestamp-different-for-invited-to-topic-different-than-post-time/118778/2 "2019-05-27T19:01:33Z")

</div>

Hover your pointing device over the dates to see specifics and post those specifics here please?

---

<div class="post-metadata">

### Author: ![Bas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bas/32/294929_2.png) [@Bas](https://meta.discourse.org/u/Bas)
#### Post date: [28 mei 2019 om 07:23 UTC](https://meta.discourse.org/t/relative-timestamp-different-for-invited-to-topic-different-than-post-time/118778/3 "2019-05-28T07:23:34Z")

</div>

That would’ve been smart for me to do, an IT professional would do that without being asked.. sorry :slight_smile:

Timestamp of the invite:  
`1558701092764`, getting rendered as `May 24, 2019 2:31 pm`  
Timestamp of the reply:  
`1558701190690` getting rendered as `May 24, 2019 2:33pm`

 ![28](https://global.discourse-cdn.com/meta/original/3X/7/c/7c6ff16ebb055bc07090f9b633af0ad927bc337a.png) ![06](https://global.discourse-cdn.com/meta/original/3X/5/a/5aae85ee62685d203c29cd9457a2f4e75a7d10d2.png)

---

<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: [28 mei 2019 om 10:45 UTC](https://meta.discourse.org/t/relative-timestamp-different-for-invited-to-topic-different-than-post-time/118778/4 "2019-05-28T10:45:45Z")

</div>

That is odd. Any ideas @j.jaffeux?

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [28 mei 2019 om 22:31 UTC](https://meta.discourse.org/t/relative-timestamp-different-for-invited-to-topic-different-than-post-time/118778/6 "2019-05-28T22:31:00Z")

</div>

Pretty sure this should fix it:

[https://github.com/discourse/discourse/pull/7625](https://github.com/discourse/discourse/pull/7625)

I would want to try to write a test for this before merging it, and I feel like there are other codepaths involved.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [29 mei 2019 om 13:17 UTC](https://meta.discourse.org/t/relative-timestamp-different-for-invited-to-topic-different-than-post-time/118778/7 "2019-05-29T13:17:50Z")

</div>

It has been merged, let me know if it doesn’t fix your issue. Thanks.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [29 mei 2019 om 13:17 UTC](https://meta.discourse.org/t/relative-timestamp-different-for-invited-to-topic-different-than-post-time/118778/8 "2019-05-29T13:17:52Z")

</div>


