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