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 }) {