라이브 상세 - 날짜 오류 수정

This commit is contained in:
2025-12-31 18:58:54 +09:00
parent 6e2fcc53a5
commit 4b4e47d17c
2 changed files with 3 additions and 6 deletions

View File

@@ -125,8 +125,7 @@ class LiveRoomDetailFragment(
binding.tvTitle.text = response.title
binding.tvDate.text = response.beginDateTime.convertDateFormat(
from = "yyyy.MM.dd EEE hh:mm a",
to = getString(R.string.screen_live_room_detail_date_format),
inputLocale = Locale.ENGLISH
to = getString(R.string.screen_live_room_detail_date_format)
)
if (response.price > 0) {

View File

@@ -138,14 +138,12 @@ class LiveRoomEditViewModel(
this.roomDetail = roomDetail
val date = roomDetail.beginDateTime.convertDateFormat(
from = "yyyy.MM.dd EEE hh:mm a",
to = "yyyy.MM.dd",
inputLocale = Locale.ENGLISH
to = "yyyy.MM.dd"
)
val time = roomDetail.beginDateTime.convertDateFormat(
from = "yyyy.MM.dd EEE hh:mm a",
to = "a hh:mm",
inputLocale = Locale.ENGLISH
to = "a hh:mm"
)
_reservationDateLiveData.value = date