Browse Source

Set Sunrise/Sunset info format based on user pref.

pull/92/head v21.03.01
Abhishek 4 years ago
parent
commit
3529185894
  1. 2
      Clocker/Panel/Data Layer/TimezoneDataOperations.swift

2
Clocker/Panel/Data Layer/TimezoneDataOperations.swift

@ -404,7 +404,7 @@ extension TimezoneDataOperations {
let dateFormatter = DateFormatter()
dateFormatter.locale = Locale(identifier: "en_US")
dateFormatter.timeZone = TimeZone(identifier: dataObject.timezone())
dateFormatter.dateFormat = DataStore.shared().shouldDisplay(ViewType.twelveHour) ? "hh:mm a" : "HH:mm"
dateFormatter.dateFormat = dataObject.timezoneFormat(DataStore.shared().timezoneFormat())
return dateFormatter.string(from: correct)
}

Loading…
Cancel
Save