From cc06d16d46aff56bba609eda7899713742c66016 Mon Sep 17 00:00:00 2001 From: Leo Feyer Date: Fri, 20 Aug 2021 09:35:15 +0200 Subject: [PATCH] Fix a type issue (#198) --- src/EventListener/DataContainer/NewsListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EventListener/DataContainer/NewsListener.php b/src/EventListener/DataContainer/NewsListener.php index 552d9da..1b3eef4 100644 --- a/src/EventListener/DataContainer/NewsListener.php +++ b/src/EventListener/DataContainer/NewsListener.php @@ -37,7 +37,7 @@ protected function formatOptions(Model $current, Collection $models) { $sameDay = $GLOBALS['TL_LANG']['tl_news']['sameDay']; $otherDay = $GLOBALS['TL_LANG']['tl_news']['otherDay']; - $dayBegin = strtotime('0:00', $current->date); + $dayBegin = strtotime('0:00', (int) $current->date); $options = [$sameDay => [], $otherDay => []]; foreach ($models as $model) {