From e0e54a2ee2a42cd2836dc953b40e379d4e61c29e Mon Sep 17 00:00:00 2001 From: snowykte0426 Date: Wed, 25 Dec 2024 23:09:36 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=AA=85=EC=8B=9C=EC=A0=81=20=EC=8B=9C?= =?UTF-8?q?=EA=B0=84=EB=8C=80=20=EC=A7=80=EC=A0=95=EC=9C=BC=EB=A1=9C=20UTC?= =?UTF-8?q?=20=EC=8B=9C=EA=B0=84=EB=8C=80=20=EB=B0=98=ED=99=98=20=EB=AC=B8?= =?UTF-8?q?=EC=A0=9C=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit KST를 기준으로 시간대를 계산해야 하지만 UTC를 기준으로 계산하던 문제를 해결하였습니다 Related to: #27 --- .../global/security/jwt/service/impl/JwtTokenServiceImpl.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()