라이브 시작시간 UTC 적용
라이브 상세와 수정 화면에서 UTC 기준 시간을 표시한다. 날짜 표기는 OS 언어 설정의 기본 포맷을 사용한다.
This commit is contained in:
@@ -19,6 +19,7 @@ struct GetRoomDetailResponse: Decodable {
|
||||
let tags: [String]
|
||||
let channelName: String?
|
||||
let beginDateTime: String
|
||||
let beginDateTimeUtc: String
|
||||
let numberOfParticipants: Int
|
||||
let numberOfParticipantsTotal: Int
|
||||
let manager: GetRoomDetailManager
|
||||
|
||||
@@ -94,7 +94,8 @@ struct LiveDetailView: View {
|
||||
.padding(.top, 6.7)
|
||||
|
||||
HStack(spacing: 0) {
|
||||
Text(room.beginDateTime.convertDateFormat(from: "yyyy.MM.dd EEE hh:mm a", to: "yyyy년 MM월 dd일 (E) a hh시 mm분", locale: Locale(identifier: "en_US_POSIX")))
|
||||
let beginDateText = room.beginDateTimeUtc.parseUtcIsoDate()?.localizedDateTimeString() ?? room.beginDateTime
|
||||
Text(beginDateText)
|
||||
.font(.custom(Font.medium.rawValue, size: 12))
|
||||
.foregroundColor(Color(hex: "bbbbbb"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user