Skip to content

Commit

Permalink
fix: convert archive date to gmt (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
thorbrink authored Jul 4, 2024
1 parent d38aaa6 commit 5192036
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/php/EventArchive.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,11 @@ public function taxonomyFilters($taxonomies, $taxonomy)

public function getDate($date, $post)
{

if ($post->postType !== $this->eventPostType || empty($post->startDate)) {
return $date;
}

return $post->startDate;
return get_gmt_from_date($post->startDate);
}

/**
Expand Down

0 comments on commit 5192036

Please sign in to comment.