Skip to content

Commit

Permalink
fix: 서버 시간대 한국으로 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
This2sho committed Apr 4, 2024
1 parent fc127e6 commit 8c10ab0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/com/example/parking/ParkingApplication.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.example.parking;

import jakarta.annotation.PostConstruct;
import java.util.TimeZone;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
Expand All @@ -10,6 +12,11 @@
@SpringBootApplication
public class ParkingApplication {

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

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

0 comments on commit 8c10ab0

Please sign in to comment.