# Discourse と WP の時刻差

**URL:** https://meta.discourse.org/t/time-difference-between-discourse-and-wp/85282
**Category:** WordPress
**Created:** [2018 年 4 月 13 日午後 8:58 UTC](https://meta.discourse.org/t/time-difference-between-discourse-and-wp/85282 "2018-04-13T20:58:19Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![tyeeoutdoor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tyeeoutdoor/32/94456_2.png) [@tyeeoutdoor](https://meta.discourse.org/u/tyeeoutdoor)
#### Post date: [2018 年 4 月 13 日午後 8:58 UTC](https://meta.discourse.org/t/time-difference-between-discourse-and-wp/85282/1 "2018-04-13T20:58:19Z")

</div>

I have a new install of Discourse. It is giving the correct time stamps to the posts.

I also WP-discourse-shortcodes to grab a list of topics for my WP pages. But when the discourse topics show up on WP, they all have the timestamp of 1970/01/01.

I’m not sure why it is doing that or how to fix it. I have a webhook enables for the “latest” shortcode.

Any thoughts on this would be appreciated!

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2018 年 4 月 13 日午後 9:00 UTC](https://meta.discourse.org/t/time-difference-between-discourse-and-wp/85282/2 "2018-04-13T21:00:22Z")

</div>

> [@tyeeoutdoor](#):
>
> But when the discourse topics show up on WP, they all have the timestamp of 1970/01/01

It has to do with the time format that is being returned from your server. I can fix that this weekend. I’ll let you know when the plugin has been updated.

---

<div class="post-metadata">

### Author: ![tyeeoutdoor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tyeeoutdoor/32/94456_2.png) [@tyeeoutdoor](https://meta.discourse.org/u/tyeeoutdoor)
#### Post date: [2018 年 4 月 13 日午後 9:02 UTC](https://meta.discourse.org/t/time-difference-between-discourse-and-wp/85282/3 "2018-04-13T21:02:26Z")

</div>

Oh wow thanks! I love having this feature for my membership so I really appreciate you keeping up this plugin.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2018 年 4 月 14 日午前 1:37 UTC](https://meta.discourse.org/t/time-difference-between-discourse-and-wp/85282/4 "2018-04-14T01:37:53Z")

</div>

The plugin has been updated. You can download it from GitHub here: [GitHub - communiteq/wp-discourse-shortcodes: Extends the wp-discourse plugin by adding shortcodes that can be used to link to the Discourse forum. · GitHub](https://github.com/scossar/wp-discourse-shortcodes). The update _should_ fix the problem with the dates all displaying as 1970/01/01. Let me know if it doesn’t.

Recent changes to the Discourse Groups routes have broken the `discourse_groups` shortcode for sites that are on the latest version of Discourse. The fix for that is fairly simple. I’ll update the plugin again later this weekend.

Edit: the plugin caches the HTML that it creates from the Discourse content. You can get fresh content by clicking the Update button on any post or page that has a `discourse_topics` shortcode on it.

---

<div class="post-metadata">

### Author: ![tyeeoutdoor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tyeeoutdoor/32/94456_2.png) [@tyeeoutdoor](https://meta.discourse.org/u/tyeeoutdoor)
#### Post date: [2018 年 4 月 14 日午後 9:25 UTC](https://meta.discourse.org/t/time-difference-between-discourse-and-wp/85282/5 "2018-04-14T21:25:55Z")

</div>

Works perfectly! Thanks for such a quick update.
