Skip to content

Commit

Permalink
fix: 명시적 시간대 지정으로 UTC 시간대 반환 문제 해결
Browse files Browse the repository at this point in the history
KST를 기준으로 시간대를 계산해야 하지만 UTC를 기준으로 계산하던 문제를 해결하였습니다

Related to: #27
  • Loading branch information
snowykte0426 committed Dec 25, 2024
1 parent dd4c6ab commit e0e54a2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down

0 comments on commit e0e54a2

Please sign in to comment.