Skip to content

Commit

Permalink
fix: subtract 9 hours to start to convert it to UTC (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeryboy authored Apr 12, 2024
1 parent c216c85 commit 549178c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ReservationController(
@RequestParam month: Int,
@RequestParam day: Int
): ResponseEntity<List<SimpleReservationDto>> {
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))
}
Expand Down

0 comments on commit 549178c

Please sign in to comment.