diff --git a/modules/opd_presentations/src/Presentation.php b/modules/opd_presentations/src/Presentation.php index 44bbef704..6116728a2 100644 --- a/modules/opd_presentations/src/Presentation.php +++ b/modules/opd_presentations/src/Presentation.php @@ -4,7 +4,6 @@ declare(strict_types=1); namespace Drupal\opd_presentations; -use Drupal\Core\Datetime\DrupalDateTime; use Drupal\node\Entity\Node; use Drupal\node\NodeInterface; @@ -15,7 +14,7 @@ final class Presentation extends Node implements NodeInterface { public function getPastEvents(): Events { $events = $this->get('field_events')->referencedEntities(); - $today = (new DrupalDateTime('today'))->format('U'); + $today = strtotime('today'); return Events::new(array_filter( array: $events,