
[Mapstruct] LocalDateTime Date mapstruct ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ด์ฉํด LocalDateTime์ Date๋ฅผ ๋ฐ๊ฟ๋ ๊ธฐ๋ณธ์ ์ผ๋ก Timezone์ UTC๋ฅผ ์ฌ์ฉํ๊ธฐ ๋๋ฌธ์, ํ์ฌ ์๋ฒ๊ฐ ์กด์ฌํ๋ ๋๋ผ์ ์๊ฐ๊ณผ ๋ค๋ฅด๊ฒ ๋ณํ ๋๋ค. (์ฐ๋ฆฌ๋๋ผ์ ๊ฒฝ์ฐ -9์๊ฐ ๋ ์๊ฐ์ผ๋ก ๋ณด์ฌ์ง) ๊ทธ๋์ ํ์ฌ ์์คํ
์ timezone์ ์ด์ฉํด ๋ณํํด์ผ ํ๋๋ฐ ๋ฑํ timezone์ ๋ณ์๋ก ์ฌ์ฉํด ๋ฐ๊ฟ ์ ์๋ ๋ฐฉ๋ฒ์ ์์ด๋ณด์ฌ์, expression์ ์ด์ฉํด ๋ณํํ๋ ๋ฐฉ๋ฒ์ ์ ํํ๋ค. import org.mapstruct.Mapper; import org.mapstruct.Mapping; import java.time.ZoneId; import java.util.List; @Mapper(imports = Z..