라이브 상세 - dateformat에 locale 추가
This commit is contained in:
		| @@ -57,6 +57,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 | ||||
|  | ||||
| @@ -290,6 +291,9 @@ class LiveRoomService( | ||||
|             .atZone(ZoneId.of("UTC")) | ||||
|             .withZoneSameInstant(ZoneId.of(timezone)) | ||||
|  | ||||
|         val dateFormatter = DateTimeFormatter.ofPattern("yyyy.MM.dd E a hh:mm") | ||||
|             .withLocale(Locale(timezone)) | ||||
|  | ||||
|         val response = GetRoomDetailResponse( | ||||
|             roomId = roomId, | ||||
|             title = room.title, | ||||
| @@ -299,7 +303,7 @@ class LiveRoomService( | ||||
|             numberOfParticipantsTotal = room.numberOfPeople, | ||||
|             numberOfParticipants = 0, | ||||
|             channelName = room.channelName, | ||||
|             beginDateTime = beginDateTime.format(DateTimeFormatter.ofPattern("yyyy.MM.dd E hh:mm a")), | ||||
|             beginDateTime = beginDateTime.format(dateFormatter), | ||||
|             isPaid = false, | ||||
|             isPrivateRoom = room.type == LiveRoomType.PRIVATE, | ||||
|             password = room.password | ||||
|   | ||||
		Reference in New Issue
	
	Block a user