From 72bbc82abd1f665c34446d88e3ae92626960f400 Mon Sep 17 00:00:00 2001 From: wjddn2165 Date: Mon, 12 Aug 2024 12:01:28 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=84=A0=EC=B0=A9=EC=88=9C=20=EC=9D=B4?= =?UTF-8?q?=EB=B2=A4=ED=8A=B8=20Test=20API=EC=97=90=EC=84=9C=20=EC=98=A4?= =?UTF-8?q?=EB=8A=98=20=EB=82=A0=EC=A7=9C=20=EA=B8=B0=EC=A4=80=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EC=9D=B4=EB=B2=A4=ED=8A=B8=20=EC=82=BD=EC=9E=85?= =?UTF-8?q?=ED=95=98=EB=8F=84=EB=A1=9D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/event/service/eventService/RushEventService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Server/src/main/java/JGS/CasperEvent/domain/event/service/eventService/RushEventService.java b/Server/src/main/java/JGS/CasperEvent/domain/event/service/eventService/RushEventService.java index 9dbe627c..f2a3de23 100644 --- a/Server/src/main/java/JGS/CasperEvent/domain/event/service/eventService/RushEventService.java +++ b/Server/src/main/java/JGS/CasperEvent/domain/event/service/eventService/RushEventService.java @@ -163,7 +163,8 @@ public void setTodayEventToRedis() { rushOptionRepository.deleteAllInBatch(); rushEventRepository.deleteAllInBatch(); - LocalDateTime startDateTime = LocalDateTime.of(2024, 8, 11, 22, 0); + // 현재 날짜와 시간을 기준으로 이벤트 시간 설정 + LocalDateTime startDateTime = LocalDateTime.now().withHour(22).withMinute(0).withSecond(0).withNano(0); LocalDateTime endDateTime = startDateTime.plusMinutes(10); List rushEvents = new ArrayList<>();