From 97cb63e806e1952877d30b93d7c227a0303d6ffc Mon Sep 17 00:00:00 2001 From: jeongju Date: Sat, 21 Dec 2024 16:39:47 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=A9=B4=EC=A0=91=EC=8B=9C=EA=B0=84=20?= =?UTF-8?q?=EC=9D=91=EB=8B=B5=20dto=EC=97=90=20datetime=20format=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../post/model/dto/response/MeetingTimeResponseDTO.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/likelion/innerjoin/post/model/dto/response/MeetingTimeResponseDTO.java b/src/main/java/com/likelion/innerjoin/post/model/dto/response/MeetingTimeResponseDTO.java index 6c7f281..5512c92 100644 --- a/src/main/java/com/likelion/innerjoin/post/model/dto/response/MeetingTimeResponseDTO.java +++ b/src/main/java/com/likelion/innerjoin/post/model/dto/response/MeetingTimeResponseDTO.java @@ -1,5 +1,6 @@ package com.likelion.innerjoin.post.model.dto.response; +import com.fasterxml.jackson.annotation.JsonFormat; import lombok.AllArgsConstructor; import lombok.Data; @@ -13,12 +14,16 @@ public class MeetingTimeResponseDTO { private int allowedNum; private int reservedNum; // 예약된 사람 수 private List applicantList; // 예약한 사람 리스트 + + @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss") private LocalDateTime meetingStartTime; + + @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss") private LocalDateTime meetingEndTime; @Data @AllArgsConstructor - public static class ApplicantDTO { // static으로 선언 + public static class ApplicantDTO { private Long applicantId; private String name; private String studentNumber;