Skip to content

Commit d5c1070

Browse files
committed
fix: 당일에 퀴즈를 여러번 풀 수 있는 버그를 수정한다
1 parent 483e70b commit d5c1070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/org/gitanimals/quiz/domain/context/QuizSolveContextService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class QuizSolveContextService(
1919
category: Category,
2020
quizs: List<Quiz>,
2121
): QuizSolveContext {
22-
val now = LocalDate.ofInstant(instant(), ZoneId.of("UTC"))
22+
val now = LocalDate.ofInstant(instant(), ZoneId.of("Asia/Seoul"))
2323
quizSolveContextRepository.findQuizSolveContextByUserIdAndSolvedAt(userId, now)?.let {
2424
throw IllegalArgumentException("Already solve daily quiz.")
2525
}

0 commit comments

Comments
 (0)