라이브 리스트, 상세, 예약 - 타임존을 적용해서 내려주는 beginDateTime을 제거하고 UTC 타임존이 적용된 beginDateTimeUtc를 사용하도록 수정

This commit is contained in:
2026-01-21 15:48:25 +09:00
parent 258f0036a6
commit f44eacaf52
13 changed files with 49 additions and 49 deletions

View File

@@ -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)