라이브 상세 - dateformat에 locale 추가
This commit is contained in:
parent
4bf8617102
commit
6f40838d09
|
@ -57,6 +57,7 @@ import java.time.LocalDateTime
|
||||||
import java.time.ZoneId
|
import java.time.ZoneId
|
||||||
import java.time.format.DateTimeFormatter
|
import java.time.format.DateTimeFormatter
|
||||||
import java.util.Date
|
import java.util.Date
|
||||||
|
import java.util.Locale
|
||||||
import java.util.concurrent.locks.ReentrantReadWriteLock
|
import java.util.concurrent.locks.ReentrantReadWriteLock
|
||||||
import kotlin.concurrent.write
|
import kotlin.concurrent.write
|
||||||
|
|
||||||
|
@ -290,6 +291,9 @@ class LiveRoomService(
|
||||||
.atZone(ZoneId.of("UTC"))
|
.atZone(ZoneId.of("UTC"))
|
||||||
.withZoneSameInstant(ZoneId.of(timezone))
|
.withZoneSameInstant(ZoneId.of(timezone))
|
||||||
|
|
||||||
|
val dateFormatter = DateTimeFormatter.ofPattern("yyyy.MM.dd E a hh:mm")
|
||||||
|
.withLocale(Locale(timezone))
|
||||||
|
|
||||||
val response = GetRoomDetailResponse(
|
val response = GetRoomDetailResponse(
|
||||||
roomId = roomId,
|
roomId = roomId,
|
||||||
title = room.title,
|
title = room.title,
|
||||||
|
@ -299,7 +303,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.format(dateFormatter),
|
||||||
isPaid = false,
|
isPaid = false,
|
||||||
isPrivateRoom = room.type == LiveRoomType.PRIVATE,
|
isPrivateRoom = room.type == LiveRoomType.PRIVATE,
|
||||||
password = room.password
|
password = room.password
|
||||||
|
|
Loading…
Reference in New Issue