라이브 상세 - 날짜 포맷 yyyy년 MM월 dd일 (E) a hh시 mm분 로 수정
This commit is contained in:
@@ -20,7 +20,9 @@ import kr.co.vividnext.sodalive.common.LoadingDialog
|
||||
import kr.co.vividnext.sodalive.common.SharedPreferenceManager
|
||||
import kr.co.vividnext.sodalive.databinding.FragmentLiveRoomDetailBinding
|
||||
import kr.co.vividnext.sodalive.explorer.profile.UserProfileActivity
|
||||
import kr.co.vividnext.sodalive.extensions.convertDateFormat
|
||||
import org.koin.android.ext.android.inject
|
||||
import java.util.Locale
|
||||
|
||||
class LiveRoomDetailFragment(
|
||||
private val roomId: Long,
|
||||
@@ -90,7 +92,11 @@ class LiveRoomDetailFragment(
|
||||
}
|
||||
|
||||
binding.tvTitle.text = response.title
|
||||
binding.tvDate.text = response.beginDateTime
|
||||
binding.tvDate.text = response.beginDateTime.convertDateFormat(
|
||||
from = "yyyy.MM.dd EEE hh:mm a",
|
||||
to = "yyyy년 MM월 dd일 (E) a hh시 mm분",
|
||||
inputLocale = Locale.ENGLISH
|
||||
)
|
||||
|
||||
if (response.price > 0) {
|
||||
binding.tvCan.text = response.price.toString()
|
||||
|
Reference in New Issue
Block a user