diff --git a/src/main/java/packman/service/FolderService.java b/src/main/java/packman/service/FolderService.java index 9fe10a83..3cfa7332 100644 --- a/src/main/java/packman/service/FolderService.java +++ b/src/main/java/packman/service/FolderService.java @@ -27,6 +27,7 @@ import packman.util.ResponseCode; import java.time.LocalDate; +import java.time.ZoneId; import java.time.format.DateTimeFormatter; import java.time.temporal.ChronoUnit; import java.util.ArrayList; @@ -266,7 +267,9 @@ public RecentCreatedListResponseDto getRecentCreatedList(Long userId) { ListInFolderDto listInFolderDto = listInFolderDtos.get(0); String departureDate = listInFolderDto.getDepartureDate(); - LocalDate nowDate = LocalDate.now(); + + ZoneId koreaTimeZone = ZoneId.of("Asia/Seoul"); + LocalDate nowDate = LocalDate.now(koreaTimeZone); long remainDay = ChronoUnit.DAYS.between(nowDate, LocalDate.parse(departureDate, DateTimeFormatter.ISO_DATE));