라이브 리스트, 라이브 상세
- 라이브 시작 날짜/시간 포맷 yyyy년 MM월 dd일 E요일 a HH:mm 로 변경
This commit is contained in:
parent
fc39b6c7a0
commit
ee1c8d1f83
|
@ -126,14 +126,13 @@ class LiveRoomService(
|
|||
val beginDateTime = it.beginDateTime
|
||||
.atZone(ZoneId.of("UTC"))
|
||||
.withZoneSameInstant(ZoneId.of(timezone))
|
||||
.format(DateTimeFormatter.ofPattern("yyyy년 MM월 dd일 E요일 a HH:mm").withLocale(Locale.KOREAN))
|
||||
|
||||
GetRoomListResponse(
|
||||
roomId = it.id!!,
|
||||
title = it.title,
|
||||
content = it.notice,
|
||||
beginDateTime = beginDateTime.format(
|
||||
DateTimeFormatter.ofPattern("yyyy.MM.dd E hh:mm a")
|
||||
),
|
||||
beginDateTime = beginDateTime,
|
||||
numberOfParticipate = (roomInfo?.listenerCount ?: 0) +
|
||||
(roomInfo?.speakerCount ?: 0) +
|
||||
(roomInfo?.managerCount ?: 0),
|
||||
|
@ -298,6 +297,7 @@ class LiveRoomService(
|
|||
val beginDateTime = room.beginDateTime
|
||||
.atZone(ZoneId.of("UTC"))
|
||||
.withZoneSameInstant(ZoneId.of(timezone))
|
||||
.format(DateTimeFormatter.ofPattern("yyyy년 MM월 dd일 E요일 a HH:mm").withLocale(Locale.KOREAN))
|
||||
|
||||
val response = GetRoomDetailResponse(
|
||||
roomId = roomId,
|
||||
|
@ -308,7 +308,7 @@ class LiveRoomService(
|
|||
numberOfParticipantsTotal = room.numberOfPeople,
|
||||
numberOfParticipants = 0,
|
||||
channelName = room.channelName,
|
||||
beginDateTime = beginDateTime.format(DateTimeFormatter.ofPattern("yyyy.MM.dd E hh:mm a")),
|
||||
beginDateTime = beginDateTime,
|
||||
isPaid = false,
|
||||
isAdult = room.isAdult,
|
||||
isPrivateRoom = room.type == LiveRoomType.PRIVATE,
|
||||
|
|
Loading…
Reference in New Issue