Skip to content

Commit

Permalink
Test: 오늘의 퀴즈 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
chaewon-io committed Apr 15, 2024
1 parent 63c2339 commit d4e47d9
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,10 @@ public QuizResponseDto getTodaysQuiz(Long challengeGroupId) {

ZonedDateTime today = ZonedDateTime.now(ZoneId.of("Z")).truncatedTo(ChronoUnit.DAYS);

//Quiz quiz = findQuizByDate(challengeGroupId, today);
// Quiz quiz = findQuizByDate(challengeGroupId, today);
Quiz quiz = quizRepository.findById(9L).orElseThrow(() -> new QuizNotFoundException("웅앵웅"));
ZonedDateTime plusDate = quiz.getDate();


log.info("++++++++++++++++++ todayQuiz&Zoned : " + today.truncatedTo(ChronoUnit.DAYS));
log.info("++++++++++++++++++ todayQuiz&local : " + today.toLocalDate());


log.error("----------------------------------------------------------------------");
log.error("----------------------------------------------------------------------");
log.error("----------------------------------------------------------------------");
Expand All @@ -49,6 +44,7 @@ public QuizResponseDto getTodaysQuiz(Long challengeGroupId) {
log.error("----------------------------------------------------------------------");
log.error("----------------------------------------------------------------------");
log.info("_____________________ todayQuiz : " + today);
log.info("______________ today system def : " + ZonedDateTime.now(ZoneId.systemDefault()));
log.info("_____________________ Quizdate : " + plusDate);
log.info("______________ todayQuiz zoneId : " + today.getZone());
log.info("______________ Quizdate zoneId : " + plusDate.getZone());
Expand Down

0 comments on commit d4e47d9

Please sign in to comment.