Skip to content

Commit

Permalink
Merge pull request #114 from Hanaro-trip-together-bank/feature/timezone
Browse files Browse the repository at this point in the history
feat: 타임존 설정
  • Loading branch information
mummhy0811 authored Jun 4, 2024
2 parents 0ba6cd2 + 6b7f25f commit 869e997
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
package com.hanaro.triptogether;

import jakarta.annotation.PostConstruct;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.util.TimeZone;

@SpringBootApplication
//@EnableScheduling
@EnableJpaAuditing
//@EnableBatchProcessing
public class TriptogetherApplication {

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

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

0 comments on commit 869e997

Please sign in to comment.