From 384acc0ad2f92775fdbbd5a2cc5c5a22ad7316fc Mon Sep 17 00:00:00 2001 From: seungryeol Date: Mon, 8 Jul 2024 12:37:18 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20=EC=B1=84=EC=86=8C=EB=B3=84=20=EB=A3=A8?= =?UTF-8?q?=ED=8B=B4=20check=20=EC=BD=94=EB=93=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/myveggiegarden/dto/response/MyRoutineList.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/modernfarmer/farmusspring/domain/myveggiegarden/dto/response/MyRoutineList.java b/src/main/java/com/modernfarmer/farmusspring/domain/myveggiegarden/dto/response/MyRoutineList.java index 7842028c..01d622c4 100644 --- a/src/main/java/com/modernfarmer/farmusspring/domain/myveggiegarden/dto/response/MyRoutineList.java +++ b/src/main/java/com/modernfarmer/farmusspring/domain/myveggiegarden/dto/response/MyRoutineList.java @@ -59,16 +59,17 @@ private static List checkRoutine(MyVeggie myVeggie){ private static Boolean signRoutineCheck(Date date){ boolean check = true; + String date1 = String.valueOf(date); LocalDate currentDate = LocalDate.now(); LocalTime fixedTime = LocalTime.of(0, 0, 0, 0); LocalDateTime dateTime = LocalDateTime.of(currentDate, fixedTime); DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.S"); String formattedDateTime = dateTime.format(formatter); - if (date.equals(formattedDateTime)) { + if (date1.equals(formattedDateTime)) { check = false; } - log.info(String.valueOf(date)); - log.info(String.valueOf(LocalDate.now())); + log.info(String.valueOf(date1)); + log.info(String.valueOf(formattedDateTime)); return check; }