Skip to content

Commit

Permalink
[MODIFY] Set TimeZone to Asia/Seoul
Browse files Browse the repository at this point in the history
- Set TimeZone to Asia/Seoul
  • Loading branch information
himodu committed May 16, 2024
1 parent a3b5d17 commit 7f875d8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main/java/LlikelionKNU/KNUfest/KnUfestApplication.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
package LlikelionKNU.KNUfest;

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;

@EnableJpaAuditing
@SpringBootApplication
public class KnUfestApplication {

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

}

0 comments on commit 7f875d8

Please sign in to comment.