From d975f8ad1f1c75c90ba907db5e18da989784055c Mon Sep 17 00:00:00 2001 From: kric_jspark Date: Wed, 12 Aug 2026 16:02:09 +0900 Subject: [PATCH] =?UTF-8?q?260812=5F02=5FENH:=20=EC=98=88=EC=95=BD=20?= =?UTF-8?q?=EB=82=B4=EC=97=AD=20=EC=A1=B0=ED=9A=8C=EC=9D=98=20=EC=B4=88=20?= =?UTF-8?q?=EC=B2=98=EB=A6=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/kri/contact/server/service/ReserveService.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/kri/contact/server/service/ReserveService.java b/src/main/java/com/kri/contact/server/service/ReserveService.java index 09b5279..d4508a2 100644 --- a/src/main/java/com/kri/contact/server/service/ReserveService.java +++ b/src/main/java/com/kri/contact/server/service/ReserveService.java @@ -69,8 +69,14 @@ public class ReserveService { boolean requestPast, LocalDateTime now ) { - LocalDateTime startDt = requestPast ? now.minusMinutes(NOTIFICATION_RANGE_MINUTES) : now; - LocalDateTime endDt = now.plusMinutes(NOTIFICATION_RANGE_MINUTES); + LocalDateTime currentMinute = now.withSecond(0).withNano(0); + LocalDateTime startDt = requestPast + ? currentMinute.minusMinutes(NOTIFICATION_RANGE_MINUTES) + : currentMinute; + LocalDateTime endDt = currentMinute + .plusMinutes(NOTIFICATION_RANGE_MINUTES) + .withSecond(59) + .withNano(999_999_999); return toDtosWithProjectNames( listReserveRepository.findNotifications(userId, startDt, endDt) );