From c184f79f8a14f185f9d6cbeac91918488560b261 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 12 Jun 2025 02:10:08 +0100 Subject: [PATCH] Refactor --- modules/opd_presentations/src/Presentation.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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,