Skip to content

Commit

Permalink
Merge pull request #89 from mummhy0811/main
Browse files Browse the repository at this point in the history
Feat: set default timezone to seoul
  • Loading branch information
mummhy0811 authored Nov 16, 2023
2 parents f026615 + 06e001b commit e7a50c7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/com/onestep/server/ServerApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,20 @@
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

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

@EnableScheduling
@SpringBootApplication
public class ServerApplication {
static {
System.setProperty("com.amazonaws.sdk.disableEc2Metadata", "true");
}

@PostConstruct
public void started() {
TimeZone.setDefault(TimeZone.getTimeZone("Asia/Seoul"));
}
public static void main(String[] args) {
SpringApplication.run(ServerApplication.class, args);
}
Expand Down

0 comments on commit e7a50c7

Please sign in to comment.