test #72

Merged
klaus merged 4 commits from test into main 2023-11-07 16:23:12 +00:00
1 changed files with 4 additions and 4 deletions
Showing only changes of commit ee1c8d1f83 - Show all commits

View File

@ -126,14 +126,13 @@ class LiveRoomService(
val beginDateTime = it.beginDateTime val beginDateTime = it.beginDateTime
.atZone(ZoneId.of("UTC")) .atZone(ZoneId.of("UTC"))
.withZoneSameInstant(ZoneId.of(timezone)) .withZoneSameInstant(ZoneId.of(timezone))
.format(DateTimeFormatter.ofPattern("yyyy년 MM월 dd일 E요일 a HH:mm").withLocale(Locale.KOREAN))
GetRoomListResponse( GetRoomListResponse(
roomId = it.id!!, roomId = it.id!!,
title = it.title, title = it.title,
content = it.notice, content = it.notice,
beginDateTime = beginDateTime.format( beginDateTime = beginDateTime,
DateTimeFormatter.ofPattern("yyyy.MM.dd E hh:mm a")
),
numberOfParticipate = (roomInfo?.listenerCount ?: 0) + numberOfParticipate = (roomInfo?.listenerCount ?: 0) +
(roomInfo?.speakerCount ?: 0) + (roomInfo?.speakerCount ?: 0) +
(roomInfo?.managerCount ?: 0), (roomInfo?.managerCount ?: 0),
@ -298,6 +297,7 @@ class LiveRoomService(
val beginDateTime = room.beginDateTime val beginDateTime = room.beginDateTime
.atZone(ZoneId.of("UTC")) .atZone(ZoneId.of("UTC"))
.withZoneSameInstant(ZoneId.of(timezone)) .withZoneSameInstant(ZoneId.of(timezone))
.format(DateTimeFormatter.ofPattern("yyyy년 MM월 dd일 E요일 a HH:mm").withLocale(Locale.KOREAN))
val response = GetRoomDetailResponse( val response = GetRoomDetailResponse(
roomId = roomId, roomId = roomId,
@ -308,7 +308,7 @@ class LiveRoomService(
numberOfParticipantsTotal = room.numberOfPeople, numberOfParticipantsTotal = room.numberOfPeople,
numberOfParticipants = 0, numberOfParticipants = 0,
channelName = room.channelName, channelName = room.channelName,
beginDateTime = beginDateTime.format(DateTimeFormatter.ofPattern("yyyy.MM.dd E hh:mm a")), beginDateTime = beginDateTime,
isPaid = false, isPaid = false,
isAdult = room.isAdult, isAdult = room.isAdult,
isPrivateRoom = room.type == LiveRoomType.PRIVATE, isPrivateRoom = room.type == LiveRoomType.PRIVATE,