From 75452f0ffd87ebe4057e6a4705c498c332de99e5 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Wed, 21 Jan 2026 18:56:32 +0900 Subject: [PATCH] =?UTF-8?q?=EB=9D=BC=EC=9D=B4=EB=B8=8C=20=EC=98=88?= =?UTF-8?q?=EC=95=BD=20=EC=99=84=EB=A3=8C=20=ED=99=94=EB=A9=B4=EC=9D=98=20?= =?UTF-8?q?=EB=82=A0=EC=A7=9C=20=ED=91=9C=EC=8B=9C=20=EB=A1=9C=EC=A7=81=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MakeLiveReservationResponse의 필드 변경 사항을 반영하여 날짜 표시 로직을 수정함. UTC 시간을 디바이스 타임존으로 변환하고 yyyy.MM.dd E hh:mm a 포맷으로 표시함. --- .../Complete/LiveReservationCompleteView.swift | 10 +++++++--- .../Live/Reservation/MakeLiveReservationResponse.swift | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/SodaLive/Sources/Live/Reservation/Complete/LiveReservationCompleteView.swift b/SodaLive/Sources/Live/Reservation/Complete/LiveReservationCompleteView.swift index de4891b..e101fc1 100644 --- a/SodaLive/Sources/Live/Reservation/Complete/LiveReservationCompleteView.swift +++ b/SodaLive/Sources/Live/Reservation/Complete/LiveReservationCompleteView.swift @@ -65,8 +65,12 @@ struct LiveReservationCompleteView: View { Text("예약일자") .font(.custom(Font.medium.rawValue, size: 14.7)) .foregroundColor(Color(hex: "777777")) - - Text(reservationCompleteData.beginDateString) + + let beginDateText = reservationCompleteData.beginDateTimeUtc + .parseUtcIsoDate()? + .convertDateFormat(dateFormat: "yyyy.MM.dd E hh:mm a") + ?? reservationCompleteData.beginDateTimeUtc + Text(beginDateText) .font(.custom(Font.medium.rawValue, size: 14.7)) .foregroundColor(Color(hex: "eeeeee")) } @@ -192,7 +196,7 @@ struct LiveReservationCompleteView_Previews: PreviewProvider { reservationId: 10, nickname: "김상담", title: "여자들이 좋아하는 남자 스타일은?", - beginDateString: "2021년 7월 9일 (금), 오후 02:00", + beginDateTimeUtc: "2021-07-09T05:00:00", price: "무료", haveCan: 100, useCan: 0, diff --git a/SodaLive/Sources/Live/Reservation/MakeLiveReservationResponse.swift b/SodaLive/Sources/Live/Reservation/MakeLiveReservationResponse.swift index 06da5ff..b1bbb32 100644 --- a/SodaLive/Sources/Live/Reservation/MakeLiveReservationResponse.swift +++ b/SodaLive/Sources/Live/Reservation/MakeLiveReservationResponse.swift @@ -11,7 +11,7 @@ struct MakeLiveReservationResponse: Decodable { let reservationId: Int let nickname: String let title: String - let beginDateString: String + let beginDateTimeUtc: String let price: String let haveCan: Int let useCan: Int