Skip to content

Commit

Permalink
Merge pull request #62 from TEAM-DHS/fix/timezone
Browse files Browse the repository at this point in the history
[FIX] 타임존 KST로 변경
  • Loading branch information
mingulmangul authored Nov 26, 2023
2 parents 98c8eff + 9620e58 commit 077a77b
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 077a77b

Please sign in to comment.