diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt index 1e3b98ae..9bb9f972 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt @@ -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,