라이브 상세 - 날짜 오류 수정
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user