test #1

Merged
klaus merged 94 commits from test into main 2023-08-16 02:30:37 +00:00
1 changed files with 5 additions and 1 deletions
Showing only changes of commit 6f40838d09 - Show all commits

View File

@ -57,6 +57,7 @@ import java.time.LocalDateTime
import java.time.ZoneId
import java.time.format.DateTimeFormatter
import java.util.Date
import java.util.Locale
import java.util.concurrent.locks.ReentrantReadWriteLock
import kotlin.concurrent.write
@ -290,6 +291,9 @@ class LiveRoomService(
.atZone(ZoneId.of("UTC"))
.withZoneSameInstant(ZoneId.of(timezone))
val dateFormatter = DateTimeFormatter.ofPattern("yyyy.MM.dd E a hh:mm")
.withLocale(Locale(timezone))
val response = GetRoomDetailResponse(
roomId = roomId,
title = room.title,
@ -299,7 +303,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.format(dateFormatter),
isPaid = false,
isPrivateRoom = room.type == LiveRoomType.PRIVATE,
password = room.password