Skip to content

Commit 8f12f1d

Browse files
committed
[FEATURE] 여행 dayDiff 계산 시, 여행 시작일을 기준으로 계산
1 parent 54b63ab commit 8f12f1d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/hyu/erica/capstone/web/dto/user/response/MyTripPlanResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static TripDetail of(
2929
String imageUrl, String memo, String city) {
3030

3131
// dayDiff 오늘부터 여행 종료일 까지의 일수
32-
int dayDiff = (int) (LocalDate.now().toEpochDay() - endDate.toEpochDay());
32+
int dayDiff = (int) (LocalDate.now().toEpochDay() - startDate.toEpochDay());
3333

3434
return new TripDetail(tripPlanId, tripPlanName, tripPlanStatus, startDate, endDate, dayDiff ,imageUrl, memo, city);
3535
}

0 commit comments

Comments
 (0)