Browse Source

German correction.

pull/92/head
Abhishek 4 years ago
parent
commit
d279525f89
  1. 4
      Clocker/Panel/Data Layer/TimezoneDataOperations.swift

4
Clocker/Panel/Data Layer/TimezoneDataOperations.swift

@ -331,6 +331,10 @@ extension TimezoneDataOperations {
let replaced = timeDifference.replacingOccurrences(of: "ago", with: CLEmptyString)
replaceAgo.append(replaced)
if !TimezoneDataOperations.currentLocale.contains("en") {
return replaceAgo
}
let minuteDifference = calculateTimeDifference(with: local as NSDate, timezoneDate: timezoneDate as NSDate)
minuteDifference == 0 ? replaceAgo.append("behind") : replaceAgo.append("\(minuteDifference) mins behind")

Loading…
Cancel
Save