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()