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 0d6a9fd7..727be6e9 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,7 +70,6 @@ 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 @@ -187,8 +186,8 @@ class LiveRoomService( .withZoneSameInstant(ZoneId.of(timezone)) .format( DateTimeFormatter - .ofPattern("yyyy년 MM월 dd일 (E) a hh시 mm분") - .withLocale(Locale.KOREAN) + .ofPattern(messageSource.getMessage("live.room.datetime_format", langContext.lang).orEmpty()) + .withLocale(langContext.lang.locale) ) val beginDateTimeUtc = it.beginDateTime @@ -436,7 +435,11 @@ class LiveRoomService( val beginDateTime = room.beginDateTime .atZone(ZoneId.of("UTC")) .withZoneSameInstant(ZoneId.of(timezone)) - .format(DateTimeFormatter.ofPattern("yyyy.MM.dd E hh:mm a")) + .format( + DateTimeFormatter + .ofPattern(messageSource.getMessage("live.room.datetime_format_detail", langContext.lang).orEmpty()) + .withLocale(langContext.lang.locale) + ) val beginDateTimeUtc = room.beginDateTime .format(DateTimeFormatter.ISO_LOCAL_DATE_TIME)