Merge pull request #107 from mediaformat/date_gmt

Fix timezone
This commit is contained in:
Matthias Pfefferle 2020-12-17 15:48:16 +01:00 committed by GitHub
commit 48115bb252
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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,