Skip to content

Commit

Permalink
[BugFix] - ec2 응답 시 날짜 버그 수정했습니다.
Browse files Browse the repository at this point in the history
[BugFix] - ec2 응답 시 날짜 버그 수정했습니다.
  • Loading branch information
fakerdeft committed May 14, 2024
2 parents 74ae7c6 + c6441c2 commit a16c682
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/coverflow/notice/dto/NoticeDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import lombok.Getter;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.time.LocalDate;

@Getter
@NoArgsConstructor
Expand All @@ -16,7 +16,7 @@ public class NoticeDTO {
private String noticeContent;
private long noticeViews;
private boolean noticeStatus;
private LocalDateTime createdAt;
private LocalDate createdAt;

public static NoticeDTO from(final Notice notice) {
return new NoticeDTO(
Expand All @@ -25,7 +25,7 @@ public static NoticeDTO from(final Notice notice) {
notice.getContent(),
notice.getViews(),
notice.isNoticeStatus(),
notice.getCreatedAt()
notice.getCreatedAt().toLocalDate()
);
}
}

0 comments on commit a16c682

Please sign in to comment.