Skip to content

Commit

Permalink
Update teksttv.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rmens committed Oct 29, 2024
1 parent 2fbdda1 commit 4c91f43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/teksttv.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private function get_article_slides($block)
// Skip if the post's expiration date has passed
$end_date = get_field('post_kabelkrant_datum_uit', $post_id);
if (!empty($end_date)) {
$end_date = trim($end_date); // Remove any extra whitespace
$end_date = trim($end_date);

$wp_timezone = new DateTimeZone(wp_timezone_string());
$end_date_obj = DateTime::createFromFormat('Y-m-d H:i:s', $end_date, $wp_timezone);
Expand Down

0 comments on commit 4c91f43

Please sign in to comment.