From a5e752e4f07a8f33670e41649633106a16416d2c Mon Sep 17 00:00:00 2001 From: Raymon Mens Date: Sun, 27 Oct 2024 13:08:35 +0100 Subject: [PATCH] [TekstTV] Fix post end date (#127) --- lib/teksttv.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/teksttv.php b/lib/teksttv.php index 79701c9..f1d899c 100644 --- a/lib/teksttv.php +++ b/lib/teksttv.php @@ -128,7 +128,7 @@ private function get_article_slides($block) // Skip if the post's expiration date has passed $end_date = get_field('post_kabelkrant_datum_uit', get_the_ID()); if (!empty($end_date)) { - $end_date_obj = DateTime::createFromFormat('d/m/Y', $end_date); + $end_date_obj = DateTime::createFromFormat('Y-m-d H:i:s', $end_date); if ($end_date_obj && $end_date_obj->getTimestamp() < current_time('timestamp')) { continue; }