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; }