Skip to content

Commit

Permalink
Merge pull request #93 from softeerbootcamp4th/feature/#88-total-even…
Browse files Browse the repository at this point in the history
…t-date

fix: 선착순 이벤트 Test API에서 오늘 날짜 기준으로 이벤트 삽입하도록 변경
  • Loading branch information
wjddn2165 authored Aug 12, 2024
2 parents c5dc27a + 72bbc82 commit c0b598d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ public void setTodayEventToRedis() {
rushOptionRepository.deleteAllInBatch();
rushEventRepository.deleteAllInBatch();

LocalDateTime startDateTime = LocalDateTime.of(2024, 8, 11, 22, 0);
// 현재 날짜와 시간을 기준으로 이벤트 시간 설정
LocalDateTime startDateTime = LocalDateTime.now().withHour(22).withMinute(0).withSecond(0).withNano(0);
LocalDateTime endDateTime = startDateTime.plusMinutes(10);

List<RushEvent> rushEvents = new ArrayList<>();
Expand Down

0 comments on commit c0b598d

Please sign in to comment.