From 4e20e81cc40ce163196329cb1e0873caf0cb444b Mon Sep 17 00:00:00 2001 From: Jungseok Sung Date: Sun, 12 Mar 2023 21:23:28 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=98=88=EC=95=BD=20=EA=B0=80=EB=8A=A5?= =?UTF-8?q?=20=EA=B3=B5=EA=B0=84=20=EC=A1=B0=ED=9A=8C=20=EC=8B=9C,=20?= =?UTF-8?q?=EA=B3=BC=EA=B1=B0=20=EC=8B=9C=EA=B0=84=20=EA=B2=80=EC=A6=9D=20?= =?UTF-8?q?=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95=20(#939)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/woowacourse/zzimkkong/service/SpaceService.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/com/woowacourse/zzimkkong/service/SpaceService.java b/backend/src/main/java/com/woowacourse/zzimkkong/service/SpaceService.java index 2e1e5b4f7..d62744881 100644 --- a/backend/src/main/java/com/woowacourse/zzimkkong/service/SpaceService.java +++ b/backend/src/main/java/com/woowacourse/zzimkkong/service/SpaceService.java @@ -116,7 +116,11 @@ public SpaceFindAllAvailabilityResponse findAllSpaceAvailability( List allSpaces = map.getSpaces(); Set spaceIds = allSpaces.stream().map(Space::getId).collect(Collectors.toSet()); - ReservationTime reservationTime = ReservationTime.ofDefaultServiceZone(startDateTime, endDateTime); + ReservationTime reservationTime = ReservationTime.of( + startDateTime, + endDateTime, + map.getServiceZone(), + false); List allReservations = reservations.findAllBySpaceIdInAndReservationTimeDate(spaceIds, reservationTime.getDate()); Set unavailableSpaces = allReservations.stream()