diff --git a/src/Controller/EventController.php b/src/Controller/EventController.php index 7aa5831..481f74d 100644 --- a/src/Controller/EventController.php +++ b/src/Controller/EventController.php @@ -53,7 +53,7 @@ public function index(Request $request, EventRepository $eventRepository): Respo ->findForLicenseeByMonthAndYear($this->licenseeHelper->getLicenseeFromSession(), $month, $year); $firstDate = (new \DateTime(sprintf('%s-%s-01 midnight', $year, $month))); - $lastDate = (clone $firstDate)->modify('last day of this month'); + $lastDate = (clone $firstDate)->modify('last day of this month')->setTime(23, 59, 59); if (1 !== (int) $firstDate->format('N')) { $firstDate->modify('previous monday'); }