Skip to content

Commit

Permalink
[BugFix] - ec2 응답 시 날짜 테스트 중입니다.
Browse files Browse the repository at this point in the history
[BugFix] - ec2 응답 시 날짜 테스트 중입니다.
  • Loading branch information
fakerdeft committed May 14, 2024
2 parents 76a3521 + 9a4f14d commit 74ae7c6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/com/coverflow/CoverflowApplication.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
package com.coverflow;

import com.coverflow.global.config.CorsProperties;
import jakarta.annotation.PostConstruct;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.util.TimeZone;

@EnableScheduling
@EnableAspectJAutoProxy
@SpringBootApplication
Expand All @@ -17,4 +20,9 @@ public static void main(String[] args) {
SpringApplication.run(CoverflowApplication.class, args);
}

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

}

0 comments on commit 74ae7c6

Please sign in to comment.