Skip to content

Commit

Permalink
Fix a type issue (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer authored Aug 20, 2021
1 parent 28c3966 commit cc06d16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EventListener/DataContainer/NewsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit cc06d16

Please sign in to comment.