Skip to content

Commit 57f3a82

Browse files
authored
Merge pull request #44 from rhkr8521/fix/#return-date-format
[FIX] 댓글 날짜 반환 포맷 수정
2 parents 0c0b5a2 + fffb274 commit 57f3a82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/rhkr8521/mapping/api/comment/dto/CommentResponseDTO.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class CommentResponseDTO {
2121
private boolean myLike;
2222

2323
public static CommentResponseDTO fromEntity(Comment comment, boolean myLike) {
24-
DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy:MM:dd HH:mm:ss");
24+
DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
2525

2626
return CommentResponseDTO.builder()
2727
.id(comment.getId())

0 commit comments

Comments
 (0)