Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge: branch 'develop' into 'main' #112

Merged
merged 2 commits into from
Aug 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/main/java/packman/service/FolderService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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));

Expand Down
Loading