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