Skip to content

Commit

Permalink
feat : set timezone asia/seoul
Browse files Browse the repository at this point in the history
  • Loading branch information
thalals committed Mar 14, 2024
1 parent 2b52315 commit 3c995f1
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/main/java/com/example/chatserver/ChatserverApplication.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
package com.example.chatserver;

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;

@SpringBootApplication
@EnableJpaAuditing
public class ChatserverApplication {

public static void main(String[] args) {
SpringApplication.run(ChatserverApplication.class, args);
}
public static void main(String[] args) {
SpringApplication.run(ChatserverApplication.class, args);
}

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

0 comments on commit 3c995f1

Please sign in to comment.