Skip to content

Commit

Permalink
Merge pull request #114 from UMC-ON/feat/companypost
Browse files Browse the repository at this point in the history
fix: 동행구하기글 조회시 작성시간을 한국시간으로 고정해서 표시
  • Loading branch information
isuHan authored Dec 6, 2024
2 parents 9621468 + b822e30 commit 8f815c2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.Period;
import java.time.ZoneId;
import java.util.List;
import java.util.stream.Collectors;

Expand Down Expand Up @@ -100,7 +101,9 @@ public static CompanyPostResponseDTO from(CompanyPost companyPost) {
.startDate(companyPost.getStartDate())
.endDate(companyPost.getEndDate())
.currentCountry(companyPost.getCurrentCountry())
.createdAt(companyPost.getCreatedAt())
.createdAt(companyPost.getCreatedAt().atZone(ZoneId.of("UTC"))
.withZoneSameInstant(ZoneId.of("Asia/Seoul"))
.toLocalDateTime())
.imageUrls(companyPost.getImages().stream()
.map(UuidFile::getFileUrl)
.collect(Collectors.toList())) // 이미지 URL 리스트
Expand Down

0 comments on commit 8f815c2

Please sign in to comment.