Skip to content

Commit

Permalink
feat: 애플리케이션 타임존 KST로 설정 #61
Browse files Browse the repository at this point in the history
  • Loading branch information
mingulmangul committed Nov 26, 2023
1 parent 98c8eff commit 9620e58
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/com/efub/dhs/DhsApplication.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package com.efub.dhs;

import java.util.TimeZone;

import javax.annotation.PostConstruct;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
Expand All @@ -14,4 +18,8 @@ public static void main(String[] args) {
SpringApplication.run(DhsApplication.class, args);
}

@PostConstruct
public void setTimeZone() {
TimeZone.setDefault(TimeZone.getTimeZone("Asia/Seoul"));
}
}

0 comments on commit 9620e58

Please sign in to comment.