Skip to content

Commit

Permalink
Merge pull request #1007 from BrookeDot/patch-1
Browse files Browse the repository at this point in the history
Date data should be in UTC before passing to strtotime()
  • Loading branch information
attackant authored Nov 15, 2023
2 parents 1a8208d + 3150695 commit 72a7739
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/apple-actions/index/class-export.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ public function format_byline( $post, $author = '', $date = '' ) {
}

// Get the date.
if ( empty( $date ) && ! empty( $post->post_date ) ) {
$date = $post->post_date;
if ( empty( $date ) && ! empty( $post->post_date_gmt ) ) {
$date = $post->post_date_gmt;
}

// Set the default date format.
Expand Down

0 comments on commit 72a7739

Please sign in to comment.