라이브 상세 - 날짜 오류 수정
This commit is contained in:
@@ -125,8 +125,7 @@ class LiveRoomDetailFragment(
|
|||||||
binding.tvTitle.text = response.title
|
binding.tvTitle.text = response.title
|
||||||
binding.tvDate.text = response.beginDateTime.convertDateFormat(
|
binding.tvDate.text = response.beginDateTime.convertDateFormat(
|
||||||
from = "yyyy.MM.dd EEE hh:mm a",
|
from = "yyyy.MM.dd EEE hh:mm a",
|
||||||
to = getString(R.string.screen_live_room_detail_date_format),
|
to = getString(R.string.screen_live_room_detail_date_format)
|
||||||
inputLocale = Locale.ENGLISH
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if (response.price > 0) {
|
if (response.price > 0) {
|
||||||
|
|||||||
@@ -138,14 +138,12 @@ class LiveRoomEditViewModel(
|
|||||||
this.roomDetail = roomDetail
|
this.roomDetail = roomDetail
|
||||||
val date = roomDetail.beginDateTime.convertDateFormat(
|
val date = roomDetail.beginDateTime.convertDateFormat(
|
||||||
from = "yyyy.MM.dd EEE hh:mm a",
|
from = "yyyy.MM.dd EEE hh:mm a",
|
||||||
to = "yyyy.MM.dd",
|
to = "yyyy.MM.dd"
|
||||||
inputLocale = Locale.ENGLISH
|
|
||||||
)
|
)
|
||||||
|
|
||||||
val time = roomDetail.beginDateTime.convertDateFormat(
|
val time = roomDetail.beginDateTime.convertDateFormat(
|
||||||
from = "yyyy.MM.dd EEE hh:mm a",
|
from = "yyyy.MM.dd EEE hh:mm a",
|
||||||
to = "a hh:mm",
|
to = "a hh:mm"
|
||||||
inputLocale = Locale.ENGLISH
|
|
||||||
)
|
)
|
||||||
|
|
||||||
_reservationDateLiveData.value = date
|
_reservationDateLiveData.value = date
|
||||||
|
|||||||
Reference in New Issue
Block a user