From 352918589418263ff043f92f35de54a8b7c8400f Mon Sep 17 00:00:00 2001 From: Abhishek Date: Sat, 6 Feb 2021 22:38:55 -0600 Subject: [PATCH] Set Sunrise/Sunset info format based on user pref. --- Clocker/Panel/Data Layer/TimezoneDataOperations.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Clocker/Panel/Data Layer/TimezoneDataOperations.swift b/Clocker/Panel/Data Layer/TimezoneDataOperations.swift index e5999588..8a1234d5 100644 --- a/Clocker/Panel/Data Layer/TimezoneDataOperations.swift +++ b/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) }