From 40216780f21e57b44402dde113e7fb77eee42e47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9E=84=ED=98=84=EC=9A=B0?= Date: Wed, 4 Sep 2024 00:11:38 +0900 Subject: [PATCH] =?UTF-8?q?refactor=20:=20date=20->=20string=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wineyapi/tastingNote/convertor/TastingNoteConvertor.java | 2 +- .../example/wineyapi/tastingNote/dto/TastingNoteResponse.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Winey-API/src/main/java/com/example/wineyapi/tastingNote/convertor/TastingNoteConvertor.java b/Winey-API/src/main/java/com/example/wineyapi/tastingNote/convertor/TastingNoteConvertor.java index 9110e84..f28e364 100644 --- a/Winey-API/src/main/java/com/example/wineyapi/tastingNote/convertor/TastingNoteConvertor.java +++ b/Winey-API/src/main/java/com/example/wineyapi/tastingNote/convertor/TastingNoteConvertor.java @@ -288,7 +288,7 @@ private TastingNoteResponse.TastingNoteListDTO toTastingNoteListDTO(TastingNote .isPublic(result.getIsPublic()) .tastingNoteNo(tastingNoteNo.get(result.getId())) .userNickname(result.getUser().getNickName()) - .noteDate(result.getCreatedAt().toLocalDate()) + .noteDate(result.getCreatedAt().toLocalDate().toString()) .build(); } diff --git a/Winey-API/src/main/java/com/example/wineyapi/tastingNote/dto/TastingNoteResponse.java b/Winey-API/src/main/java/com/example/wineyapi/tastingNote/dto/TastingNoteResponse.java index b4d5859..d01c3d1 100644 --- a/Winey-API/src/main/java/com/example/wineyapi/tastingNote/dto/TastingNoteResponse.java +++ b/Winey-API/src/main/java/com/example/wineyapi/tastingNote/dto/TastingNoteResponse.java @@ -37,7 +37,7 @@ public static class TastingNoteListDTO { @Schema(description = "유저 이름") private String userNickname; @Schema(description = "노트 생성 날짜") - private LocalDate noteDate; + private String noteDate; } @NoArgsConstructor