From b0b85fcf9ea518ad6643153e2375d913db465416 Mon Sep 17 00:00:00 2001 From: seoyeon0103 Date: Sun, 12 Jan 2025 08:58:35 +0900 Subject: [PATCH] . --- .../Midnight/Snacker/service/PostService/PostServiceImpl.java | 2 +- .../Snacker/web/dto/CommentDTO/CommentResponseDTO.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Midnight-Snacker/src/main/java/com/example/Midnight/Snacker/service/PostService/PostServiceImpl.java b/Midnight-Snacker/src/main/java/com/example/Midnight/Snacker/service/PostService/PostServiceImpl.java index c069886..a87502e 100644 --- a/Midnight-Snacker/src/main/java/com/example/Midnight/Snacker/service/PostService/PostServiceImpl.java +++ b/Midnight-Snacker/src/main/java/com/example/Midnight/Snacker/service/PostService/PostServiceImpl.java @@ -90,7 +90,7 @@ public List getComments(Long postId){ comment.getMember().getNickname(), getRate(comment.getMember()), comment.getContent(), - comment.getDate().toLocalDate() + comment.getDate() )).toList(); } diff --git a/Midnight-Snacker/src/main/java/com/example/Midnight/Snacker/web/dto/CommentDTO/CommentResponseDTO.java b/Midnight-Snacker/src/main/java/com/example/Midnight/Snacker/web/dto/CommentDTO/CommentResponseDTO.java index a4adcfa..77dd99d 100644 --- a/Midnight-Snacker/src/main/java/com/example/Midnight/Snacker/web/dto/CommentDTO/CommentResponseDTO.java +++ b/Midnight-Snacker/src/main/java/com/example/Midnight/Snacker/web/dto/CommentDTO/CommentResponseDTO.java @@ -7,6 +7,7 @@ import org.springframework.data.convert.Jsr310Converters; import java.time.LocalDate; +import java.time.LocalDateTime; public class CommentResponseDTO { @@ -28,6 +29,6 @@ public static class CommentInfoDTO{ private String nickname; private Float percent; private String content; - private LocalDate date; + private LocalDateTime date; } }