Skip to content

Commit

Permalink
Set Sunrise/Sunset info format based on user pref.
Browse files Browse the repository at this point in the history
  • Loading branch information
n0shake committed Feb 7, 2021
1 parent 54a55c1 commit 3529185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Clocker/Panel/Data Layer/TimezoneDataOperations.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 3529185

Please sign in to comment.