Skip to content

Commit

Permalink
fix: DB 시간대와 서버 시간대가 달라서 발생하는 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
wjddn2165 committed Aug 21, 2024
1 parent b586ae9 commit 7fc7f05
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

@Repository
public interface RushEventRepository extends JpaRepository<RushEvent, Long> {
@Query("SELECT e FROM RushEvent e WHERE DATE(e.startDateTime) = :eventDate")
@Query("SELECT e FROM RushEvent e WHERE DATE(CONVERT_TZ(e.startDateTime, '+00:00', '+09:00')) = :eventDate")
List<RushEvent> findByEventDate(@Param("eventDate") LocalDate eventDate);

RushEvent findByRushEventId(Long rushEventId);
Expand Down

0 comments on commit 7fc7f05

Please sign in to comment.