diff --git a/src/main/kotlin/rainbowfriends/daramserverv2/global/security/jwt/service/impl/JwtTokenServiceImpl.kt b/src/main/kotlin/rainbowfriends/daramserverv2/global/security/jwt/service/impl/JwtTokenServiceImpl.kt index 5f705f1..2988b20 100644 --- a/src/main/kotlin/rainbowfriends/daramserverv2/global/security/jwt/service/impl/JwtTokenServiceImpl.kt +++ b/src/main/kotlin/rainbowfriends/daramserverv2/global/security/jwt/service/impl/JwtTokenServiceImpl.kt @@ -25,7 +25,7 @@ class JwtTokenServiceImpl( val expirationDate = Date.from( LocalDateTime.now() .plusSeconds(accessTokenValidity) - .atZone(ZoneId.systemDefault()) + .atZone(ZoneId.of("Asia/Seoul")) .toInstant() ) val token = Jwts.builder() @@ -42,7 +42,7 @@ class JwtTokenServiceImpl( val expirationDate = Date.from( LocalDateTime.now() .plusSeconds(refreshTokenValidity) - .atZone(ZoneId.systemDefault()) + .atZone(ZoneId.of("Asia/Seoul")) .toInstant() ) val token = Jwts.builder()