Skip to content

Commit 492783d

Browse files
authored
Merge pull request #569 from DKU-Dgaja/refactor(#568)-LocalDateTime
[BE] refactor(#568): LocalDateTime mapper 수정
2 parents 473feb2 + cba2ba3 commit 492783d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backend/src/main/java/com/example/backend/auth/config/ProjectConfig.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
import org.springframework.web.servlet.config.annotation.CorsRegistry;
1313
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
1414

15+
import java.util.TimeZone;
16+
1517

1618
@Configuration
1719
public class ProjectConfig implements WebMvcConfigurer {
@@ -39,6 +41,7 @@ public ObjectMapper objectMapper() {
3941
// Java 8 날짜/시간 모듈 등록
4042
mapper.registerModule(javaTimeModule);
4143
mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
44+
mapper.setTimeZone(TimeZone.getTimeZone("Asia/Seoul"));
4245

4346
return mapper;
4447
}

0 commit comments

Comments
 (0)