From 7f875d8aca79447e79820af6698767e77eac16ed Mon Sep 17 00:00:00 2001 From: DongGeon Lee <71763322+himodu@users.noreply.github.com> Date: Fri, 17 May 2024 03:30:02 +0900 Subject: [PATCH] [MODIFY] Set TimeZone to Asia/Seoul - Set TimeZone to Asia/Seoul --- .../java/LlikelionKNU/KNUfest/KnUfestApplication.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/LlikelionKNU/KNUfest/KnUfestApplication.java b/src/main/java/LlikelionKNU/KNUfest/KnUfestApplication.java index a3036f1..84682d0 100644 --- a/src/main/java/LlikelionKNU/KNUfest/KnUfestApplication.java +++ b/src/main/java/LlikelionKNU/KNUfest/KnUfestApplication.java @@ -1,15 +1,20 @@ package LlikelionKNU.KNUfest; +import jakarta.annotation.PostConstruct; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.data.jpa.repository.config.EnableJpaAuditing; +import java.util.TimeZone; + @EnableJpaAuditing @SpringBootApplication public class KnUfestApplication { - + @PostConstruct + void started() { + TimeZone.setDefault(TimeZone.getTimeZone("Asia/Seoul")); + } public static void main(String[] args) { SpringApplication.run(KnUfestApplication.class, args); } - }