Skip to content

Commit

Permalink
Merge pull request #115 from UMC-ON/feat/marketpostnscrap
Browse files Browse the repository at this point in the history
fix: 물품거래글 조회시 작성시간을 한국시간으로 고정해서 표시
  • Loading branch information
isuHan authored Dec 6, 2024
2 parents 8f815c2 + c80f7b5 commit ee8b081
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.List;
import java.util.stream.Collectors;

Expand Down Expand Up @@ -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 리스트
Expand Down

0 comments on commit ee8b081

Please sign in to comment.