From 549178cd3c1e67d6c3f3b0b4461fba2f24cec537 Mon Sep 17 00:00:00 2001 From: Junhyeong Kim Date: Fri, 12 Apr 2024 15:45:49 +0900 Subject: [PATCH] fix: subtract 9 hours to start to convert it to UTC (#270) --- .../csereal/core/reservation/api/ReservationController.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/wafflestudio/csereal/core/reservation/api/ReservationController.kt b/src/main/kotlin/com/wafflestudio/csereal/core/reservation/api/ReservationController.kt index e053955c..12264c60 100644 --- a/src/main/kotlin/com/wafflestudio/csereal/core/reservation/api/ReservationController.kt +++ b/src/main/kotlin/com/wafflestudio/csereal/core/reservation/api/ReservationController.kt @@ -48,7 +48,7 @@ class ReservationController( @RequestParam month: Int, @RequestParam day: Int ): ResponseEntity> { - val start = LocalDateTime.of(year, month, day, 0, 0) + val start = LocalDateTime.of(year, month, day, 0, 0).minusHours(9) val end = start.plusDays(7) return ResponseEntity.ok(reservationService.getRoomReservationsBetween(roomId, start, end)) }