From fa4483cd18af39de5b75e1fbd0467ebf3ee4529b Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Mon, 5 Jan 2026 14:53:20 +0900 Subject: [PATCH] =?UTF-8?q?=ED=98=84=EC=9E=AC=20=EB=A1=9C=EC=BC=80?= =?UTF-8?q?=EC=9D=BC=EA=B3=BC=20=EC=8B=9C=EA=B0=84=EB=8C=80=20=EC=A0=81?= =?UTF-8?q?=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SodaLive/Sources/Extensions/DateExtension.swift | 3 ++- SodaLive/Sources/Live/Room/Create/LiveRoomCreateView.swift | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/SodaLive/Sources/Extensions/DateExtension.swift b/SodaLive/Sources/Extensions/DateExtension.swift index 613c37c..ce2ba87 100644 --- a/SodaLive/Sources/Extensions/DateExtension.swift +++ b/SodaLive/Sources/Extensions/DateExtension.swift @@ -11,7 +11,8 @@ extension Date { func convertDateFormat(dateFormat: String = "yyyy.MM.dd") -> String { let formatter = DateFormatter() formatter.dateFormat = dateFormat - formatter.locale = Locale(identifier: "ko") + formatter.locale = Locale.autoupdatingCurrent + formatter.timeZone = TimeZone.current return formatter.string(from: self) } diff --git a/SodaLive/Sources/Live/Room/Create/LiveRoomCreateView.swift b/SodaLive/Sources/Live/Room/Create/LiveRoomCreateView.swift index 95ca3d5..45c0420 100644 --- a/SodaLive/Sources/Live/Room/Create/LiveRoomCreateView.swift +++ b/SodaLive/Sources/Live/Room/Create/LiveRoomCreateView.swift @@ -528,7 +528,7 @@ struct LiveRoomCreateView: View { DatePicker("", selection: $viewModel.reservationDate, in: Date()..., displayedComponents: .date) .datePickerStyle(WheelDatePickerStyle()) .labelsHidden() - .environment(\.locale, Locale.init(identifier: "ko")) + .environment(\.locale, Locale.autoupdatingCurrent) .frame(width: proxy.size.width) Button(action: { self.isShowSelectDateView = false }) { @@ -559,7 +559,7 @@ struct LiveRoomCreateView: View { DatePicker("", selection: $viewModel.reservationTime, displayedComponents: .hourAndMinute) .datePickerStyle(WheelDatePickerStyle()) .labelsHidden() - .environment(\.locale, Locale.init(identifier: "ko")) + .environment(\.locale, Locale.autoupdatingCurrent) .frame(width: proxy.size.width - 53.4) Button(action: { self.isShowSelectTimeView = false }) {