From 62b342d26215b08856a9f58ef9dbfa26ba86ecec Mon Sep 17 00:00:00 2001
From: Timur Oberhuber <t.oberhuber@student.tudelft.nl>
Date: Sun, 28 Jan 2024 11:47:03 +0100
Subject: [PATCH] :bug: Fix time conversion bug

---
 .../nl/tudelft/tam/controller/ApplicationController.java    | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/main/java/nl/tudelft/tam/controller/ApplicationController.java b/src/main/java/nl/tudelft/tam/controller/ApplicationController.java
index 54553ad61..99093e31b 100644
--- a/src/main/java/nl/tudelft/tam/controller/ApplicationController.java
+++ b/src/main/java/nl/tudelft/tam/controller/ApplicationController.java
@@ -115,8 +115,10 @@ public class ApplicationController {
 				.filter(a -> filterCourseId == null
 						|| editionService.getOrThrow(a.getJobOffer().getEditionId()).getCourse().getId()
 								.equals(filterCourseId))
-				.filter(a -> filterStartDate == null || a.getLastModifiedDate().isAfter(filterStartDate))
-				.filter(a -> filterEndDate == null || a.getLastModifiedDate().isBefore(filterEndDate))
+				.filter(a -> filterStartDate == null
+						|| a.getLastModifiedDate().isAfter(filterStartDate.atStartOfDay()))
+				.filter(a -> filterEndDate == null
+						|| a.getLastModifiedDate().isBefore(filterEndDate.atTime(23, 59, 59, 999999999)))
 				.filter(a -> q == null
 						|| personService.getPersonById(a.getId().getPersonId()).getDisplayName().contains(q)
 						|| personService.getPersonById(a.getId().getPersonId()).getNumber().toString()
-- 
GitLab