From c80f7b53b5106a397755a5f575efe0d65f5a06bf Mon Sep 17 00:00:00 2001 From: chaechaen Date: Tue, 3 Dec 2024 23:26:58 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=AC=BC=ED=92=88=EA=B1=B0=EB=9E=98?= =?UTF-8?q?=EA=B8=80=20=EC=A1=B0=ED=9A=8C=EC=8B=9C=20=EC=9E=91=EC=84=B1?= =?UTF-8?q?=EC=8B=9C=EA=B0=84=EC=9D=84=20=ED=95=9C=EA=B5=AD=EC=8B=9C?= =?UTF-8?q?=EA=B0=84=EC=9C=BC=EB=A1=9C=20=EA=B3=A0=EC=A0=95=ED=95=B4?= =?UTF-8?q?=EC=84=9C=20=ED=91=9C=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/domain/marketPost/dto/MarketPostResponseDTO.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/on/server/domain/marketPost/dto/MarketPostResponseDTO.java b/src/main/java/com/on/server/domain/marketPost/dto/MarketPostResponseDTO.java index 792960e5..83d08b43 100644 --- a/src/main/java/com/on/server/domain/marketPost/dto/MarketPostResponseDTO.java +++ b/src/main/java/com/on/server/domain/marketPost/dto/MarketPostResponseDTO.java @@ -10,6 +10,7 @@ import lombok.NoArgsConstructor; import java.time.LocalDateTime; +import java.time.ZoneId; import java.util.List; import java.util.stream.Collectors; @@ -72,7 +73,9 @@ public static MarketPostResponseDTO from(MarketPost marketPost) { .dealType(marketPost.getDealType()) .dealStatus(marketPost.getDealStatus()) .content(marketPost.getContent()) - .createdAt(marketPost.getCreatedAt()) + .createdAt(marketPost.getCreatedAt().atZone(ZoneId.of("UTC")) + .withZoneSameInstant(ZoneId.of("Asia/Seoul")) + .toLocalDateTime()) .imageUrls(marketPost.getImages().stream() .map(UuidFile::getFileUrl) .collect(Collectors.toList())) // 이미지 URL 리스트