Fix post date

This commit is contained in:
Django Doucet 2020-12-17 00:26:59 -05:00
parent f418e823c5
commit 880073de69

View file

@ -46,7 +46,7 @@ class Post {
$array = array( $array = array(
'id' => $this->id, 'id' => $this->id,
'type' => $this->object_type, '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 ), 'attributedTo' => \get_author_posts_url( $post->post_author ),
'summary' => $this->summary, 'summary' => $this->summary,
'inReplyTo' => null, 'inReplyTo' => null,