라이브 룸 리스트, 상세 - 다국어 처리를 하면서 생긴 날짜 포맷 이전 형태로 복구
This commit is contained in:
@@ -70,6 +70,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
|
||||||
|
|
||||||
@@ -181,16 +182,13 @@ class LiveRoomService(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val beginDateTimeFormat = messageSource
|
|
||||||
.getMessage("live.room.datetime_format", langContext.lang)
|
|
||||||
.orEmpty()
|
|
||||||
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(
|
.format(
|
||||||
DateTimeFormatter
|
DateTimeFormatter
|
||||||
.ofPattern(beginDateTimeFormat)
|
.ofPattern("yyyy년 MM월 dd일 (E) a hh시 mm분")
|
||||||
.withLocale(langContext.lang.locale)
|
.withLocale(Locale.KOREAN)
|
||||||
)
|
)
|
||||||
|
|
||||||
val beginDateTimeUtc = it.beginDateTime
|
val beginDateTimeUtc = it.beginDateTime
|
||||||
@@ -450,17 +448,10 @@ class LiveRoomService(
|
|||||||
throw SodaException(messageKey = "live.room.adult_verification_required")
|
throw SodaException(messageKey = "live.room.adult_verification_required")
|
||||||
}
|
}
|
||||||
|
|
||||||
val detailDateTimeFormat = messageSource
|
|
||||||
.getMessage("live.room.datetime_format_detail", langContext.lang)
|
|
||||||
.orEmpty()
|
|
||||||
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(
|
.format(DateTimeFormatter.ofPattern("yyyy.MM.dd E hh:mm a"))
|
||||||
DateTimeFormatter
|
|
||||||
.ofPattern(detailDateTimeFormat)
|
|
||||||
.withLocale(langContext.lang.locale)
|
|
||||||
)
|
|
||||||
|
|
||||||
val response = GetRoomDetailResponse(
|
val response = GetRoomDetailResponse(
|
||||||
roomId = roomId,
|
roomId = roomId,
|
||||||
|
|||||||
Reference in New Issue
Block a user