diff --git a/src/main/kotlin/com/tiketeer/TiketeerWaiting/domain/waiting/usecase/GetRankAndTokenUseCase.kt b/src/main/kotlin/com/tiketeer/TiketeerWaiting/domain/waiting/usecase/GetRankAndTokenUseCase.kt index 775d4ee..71afbb1 100644 --- a/src/main/kotlin/com/tiketeer/TiketeerWaiting/domain/waiting/usecase/GetRankAndTokenUseCase.kt +++ b/src/main/kotlin/com/tiketeer/TiketeerWaiting/domain/waiting/usecase/GetRankAndTokenUseCase.kt @@ -11,6 +11,7 @@ import reactor.core.publisher.Mono import java.time.Instant import java.time.LocalDateTime import java.time.ZoneId +import java.time.ZoneOffset import java.util.UUID @Service @@ -49,7 +50,7 @@ class GetRankAndTokenUseCase @Autowired constructor(private val redisTemplate: R private fun validateSalePeriod(ticketingId: UUID, currentTime: Long) : Mono { val findById = ticketingRepository.findById(ticketingId) - val local = LocalDateTime.ofInstant(Instant.ofEpochMilli(currentTime), ZoneId.systemDefault()) + val local = LocalDateTime.ofInstant(Instant.ofEpochMilli(currentTime), ZoneId.of("Asia/Seoul")) return findById.flatMap { ticketing -> if (ticketing.saleStart.isBefore(local) && ticketing.saleEnd.isAfter(local)) { Mono.just(true) @@ -58,4 +59,5 @@ class GetRankAndTokenUseCase @Autowired constructor(private val redisTemplate: R } } } + } \ No newline at end of file