diff --git a/Clocker/Clocker/Clocker.entitlements b/Clocker/Clocker/Clocker.entitlements index 1754713..9f43c40 100644 --- a/Clocker/Clocker/Clocker.entitlements +++ b/Clocker/Clocker/Clocker.entitlements @@ -2,10 +2,6 @@ - com.apple.developer.icloud-container-identifiers - - com.apple.developer.ubiquity-kvstore-identifier - $(TeamIdentifierPrefix)$(CFBundleIdentifier) com.apple.security.app-sandbox com.apple.security.cs.disable-library-validation diff --git a/Clocker/Clocker/en.lproj/Panel.xib b/Clocker/Clocker/en.lproj/Panel.xib index b6abe5b..8e150fc 100755 --- a/Clocker/Clocker/en.lproj/Panel.xib +++ b/Clocker/Clocker/en.lproj/Panel.xib @@ -1,8 +1,8 @@ - + - + @@ -61,7 +61,6 @@ - @@ -79,9 +78,9 @@ - + - + @@ -178,22 +177,22 @@ - - + + + + - - diff --git a/Clocker/Panel/Data Layer/TimezoneDataOperations.swift b/Clocker/Panel/Data Layer/TimezoneDataOperations.swift index 3b68f1d..6fa3466 100644 --- a/Clocker/Panel/Data Layer/TimezoneDataOperations.swift +++ b/Clocker/Panel/Data Layer/TimezoneDataOperations.swift @@ -138,16 +138,20 @@ extension TimezoneDataOperations { } func date(with sliderValue: Int, displayType: CLDateDisplayType) -> String { - var currentCalendar = Calendar(identifier: .gregorian) - currentCalendar.locale = Locale.autoupdatingCurrent - - let convertedDate = timezoneDate(with: sliderValue, currentCalendar) - guard let relativeDayPreference = DataStore.shared().retrieve(key: CLRelativeDateKey) as? NSNumber else { assertionFailure("Data was unexpectedly nil") return CLEmptyString } + if relativeDayPreference.intValue == 3 { + return CLEmptyString + } + + var currentCalendar = Calendar(identifier: .gregorian) + currentCalendar.locale = Locale.autoupdatingCurrent + + let convertedDate = timezoneDate(with: sliderValue, currentCalendar) + if displayType == CLDateDisplayType.panelDisplay { // Yesterday, tomorrow, etc if relativeDayPreference.intValue == 0 { diff --git a/Clocker/Panel/UI/FloatingWindow.xib b/Clocker/Panel/UI/FloatingWindow.xib index f983279..b736027 100644 --- a/Clocker/Panel/UI/FloatingWindow.xib +++ b/Clocker/Panel/UI/FloatingWindow.xib @@ -1,8 +1,8 @@ - + - + @@ -37,7 +37,7 @@ - + @@ -55,14 +55,13 @@ - + - @@ -78,7 +77,7 @@ - + @@ -86,19 +85,19 @@ - + - + - + @@ -109,7 +108,7 @@ - + @@ -120,7 +119,7 @@ - + @@ -180,21 +179,21 @@ - + + - + - @@ -259,7 +258,6 @@ - @@ -283,7 +281,6 @@ - - + - + - + @@ -1501,7 +1486,6 @@ DQ - @@ -1584,14 +1568,14 @@ DQ - + - + @@ -1712,7 +1696,6 @@ DQ - @@ -1724,7 +1707,6 @@ DQ - @@ -1737,7 +1719,6 @@ DQ -