# Incorrect date shows after import

**URL:** https://meta.discourse.org/t/incorrect-date-shows-after-import/202138
**Category:** Support
**Created:** [August 30, 2021, 5:06pm UTC](https://meta.discourse.org/t/incorrect-date-shows-after-import/202138 "2021-08-30T17:06:20Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![cassidy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cassidy/32/172302_2.png) [@cassidy](https://meta.discourse.org/u/cassidy)
#### Post date: [August 30, 2021, 5:06pm UTC](https://meta.discourse.org/t/incorrect-date-shows-after-import/202138/1 "2021-08-30T17:06:21Z")

</div>

I have searched and this issue was asked about three times before with no answers provided.

We imported our forums to Discourse on September 5th, 2020 and the posts that were imported show that exact date of the import and not the actual date the post was created by the publisher.

This annoys people who think they are viewing the most recent post on a topic- since it shows in Google as September 5th, 2020. Then they find out it’s actually a post from say 2017.

Please, can someone answer? This affects almost 13,000 posts in Google and it is wreaking havoc on our SEO ranking on Google. Thank you.

---

<div class="post-metadata">

### Author: ![anon73664359](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@anon73664359](https://meta.discourse.org/u/anon73664359)
#### Post date: [August 30, 2021, 5:14pm UTC](https://meta.discourse.org/t/incorrect-date-shows-after-import/202138/2 "2021-08-30T17:14:03Z")

</div>

Does the issue specifically affect Google or does it also happen in Bing (and other search engines that are powered by it)?

---

<div class="post-metadata">

### Author: ![cassidy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cassidy/32/172302_2.png) [@cassidy](https://meta.discourse.org/u/cassidy)
#### Post date: [September 7, 2021, 4:20pm UTC](https://meta.discourse.org/t/incorrect-date-shows-after-import/202138/3 "2021-09-07T16:20:45Z")

</div>

It does. The date shows as Sept. 5th in Bing which is the date we switched our forums to Discourse. It also happens in Safari.

Do you think this would work?

1. We search through the database, capture all the fields that have a dateModified of our migration
2. Capture all the datePublished of those posts
3. Set the dateModified to equal the datePublished date

---

<div class="post-metadata">

### Author: ![anon73664359](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@anon73664359](https://meta.discourse.org/u/anon73664359)
#### Post date: [September 7, 2021, 5:15pm UTC](https://meta.discourse.org/t/incorrect-date-shows-after-import/202138/4 "2021-09-07T17:15:57Z")

</div>

I don’t think it depends on which web browser you use.

---

<div class="post-metadata">

### Author: ![cassidy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cassidy/32/172302_2.png) [@cassidy](https://meta.discourse.org/u/cassidy)
#### Post date: [September 7, 2021, 6:53pm UTC](https://meta.discourse.org/t/incorrect-date-shows-after-import/202138/5 "2021-09-07T18:53:27Z")

</div>

No it wouldn’t matter. I think we are going to try and modify it with the steps I posted and I’ll let you know if if worked or not. I appreciate you communicating with me on this thread.

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [September 7, 2021, 7:02pm UTC](https://meta.discourse.org/t/incorrect-date-shows-after-import/202138/6 "2021-09-07T19:02:18Z")

</div>

The crawler view currently always shows the `updated_at` field of posts when it was updated since the post was created. That feels wrong to me and it hurts the most when you have imported posts.

I think we should change it so that we always render the `created_at` field of posts. That’s more in line with how the rest of Discourse presents post dates. I’ve created a PR:

> <https://github.com/discourse/discourse/pull/14269>
>
> The modification date should always be a meta tag to make this less confusing. E…specially for imported posts.
> That's more in line with how the rest of Discourse presents post dates.

---

<div class="post-metadata">

### Author: ![anon73664359](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@anon73664359](https://meta.discourse.org/u/anon73664359)
#### Post date: [September 7, 2021, 7:20pm UTC](https://meta.discourse.org/t/incorrect-date-shows-after-import/202138/7 "2021-09-07T19:20:28Z")

</div>

Okay, I wish you good luck! Make sure to share the results with us once they’re in!

---

<div class="post-metadata">

### Author: ![cassidy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cassidy/32/172302_2.png) [@cassidy](https://meta.discourse.org/u/cassidy)
#### Post date: [September 7, 2021, 7:38pm UTC](https://meta.discourse.org/t/incorrect-date-shows-after-import/202138/8 "2021-09-07T19:38:51Z")

</div>

Thank you so much, i really appreciate it.

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [September 8, 2021, 12:52pm UTC](https://meta.discourse.org/t/incorrect-date-shows-after-import/202138/9 "2021-09-08T12:52:45Z")

</div>

@cassidy The PR has been merged. Please update your forum and give it a try. I’m pretty sure it will fix your problems.

---

<div class="post-metadata">

### Author: ![cassidy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cassidy/32/172302_2.png) [@cassidy](https://meta.discourse.org/u/cassidy)
#### Post date: [September 8, 2021, 3:39pm UTC](https://meta.discourse.org/t/incorrect-date-shows-after-import/202138/10 "2021-09-08T15:39:01Z")

</div>

Cool! We’ll give it a try asap and I’ll let you know. Thanks again for your attention to this!
