|
|
@ -216,7 +216,8 @@ extension TimezoneDataSource: PanelTableViewDelegate { |
|
|
|
let currentModel = timezones[row] |
|
|
|
let currentModel = timezones[row] |
|
|
|
if let timezone = TimeZone(identifier: currentModel.timezone()) { |
|
|
|
if let timezone = TimeZone(identifier: currentModel.timezone()) { |
|
|
|
let offSet = Double(timezone.secondsFromGMT()) / 3600 |
|
|
|
let offSet = Double(timezone.secondsFromGMT()) / 3600 |
|
|
|
let localizedName = timezone.localizedName(for: .shortDaylightSaving, locale: Locale.autoupdatingCurrent) ?? "Error" |
|
|
|
let isDaylightSavings = timezone.isDaylightSavingTime() |
|
|
|
|
|
|
|
let localizedName = timezone.localizedName(for: isDaylightSavings ? .shortDaylightSaving : .shortStandard, locale: Locale.autoupdatingCurrent) ?? "Error" |
|
|
|
if offSet == 0.0 { |
|
|
|
if offSet == 0.0 { |
|
|
|
return "\(localizedName)" |
|
|
|
return "\(localizedName)" |
|
|
|
} else { |
|
|
|
} else { |
|
|
|