From 880073de69c8d7d01988a38208e524f3fafdc8a2 Mon Sep 17 00:00:00 2001 From: Django Doucet Date: Thu, 17 Dec 2020 00:26:59 -0500 Subject: [PATCH] Fix post date --- includes/model/class-post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/model/class-post.php b/includes/model/class-post.php index efacd6f..eb6330f 100644 --- a/includes/model/class-post.php +++ b/includes/model/class-post.php @@ -46,7 +46,7 @@ class Post { $array = array( 'id' => $this->id, 'type' => $this->object_type, - 'published' => \date( 'Y-m-d\TH:i:s\Z', \strtotime( $post->post_date ) ), + 'published' => \date( 'Y-m-d\TH:i:s\Z', \strtotime( $post->post_date_gmt ) ), 'attributedTo' => \get_author_posts_url( $post->post_author ), 'summary' => $this->summary, 'inReplyTo' => null,