Skip to content

Commit

Permalink
update timezone to Asia/Seoul
Browse files Browse the repository at this point in the history
  • Loading branch information
D-w-nJ committed Oct 8, 2023
1 parent 212eac3 commit b32e132
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/com/m9d/sroom/SroomApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;

import javax.annotation.PostConstruct;
import java.util.TimeZone;
import java.util.concurrent.Executor;

@SpringBootApplication
Expand All @@ -19,6 +21,12 @@ public static void main(String[] args) {
SpringApplication.run(SroomApplication.class, args);
}

@PostConstruct
public void init() {
// timezone 설정
TimeZone.setDefault(TimeZone.getTimeZone("Asia/Seoul"));
}

@Bean
public Executor taskExecutor() {
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
Expand Down

0 comments on commit b32e132

Please sign in to comment.