라이브 리스트, 상세, 예약 - 타임존을 적용해서 내려주는 beginDateTime을 제거하고 UTC 타임존이 적용된 beginDateTimeUtc를 사용하도록 수정
This commit is contained in:
@@ -13,10 +13,14 @@ fun String.convertDateFormat(
|
||||
from: String,
|
||||
to: String,
|
||||
inputLocale: Locale = Locale.getDefault(),
|
||||
outputLocale: Locale = Locale.getDefault()
|
||||
outputLocale: Locale = Locale.getDefault(),
|
||||
inputTimeZone: TimeZone = TimeZone.getDefault(),
|
||||
outputTimeZone: TimeZone = TimeZone.getDefault()
|
||||
): String {
|
||||
val fromDateFormat = SimpleDateFormat(from, inputLocale)
|
||||
fromDateFormat.timeZone = inputTimeZone
|
||||
val toDateFormat = SimpleDateFormat(to, outputLocale)
|
||||
toDateFormat.timeZone = outputTimeZone
|
||||
|
||||
var outputDateString = ""
|
||||
val date = fromDateFormat.parse(this)
|
||||
|
||||
Reference in New Issue
Block a user