Explorar o código

fix date diff

Signed-off-by: Marino Faggiana <8616947+marinofaggiana@users.noreply.github.com>
Marino Faggiana hai 1 ano
pai
achega
a66fc72d8f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      iOSClient/Utility/NCUtility+Date.swift

+ 1 - 1
iOSClient/Utility/NCUtility+Date.swift

@@ -62,7 +62,7 @@ extension NCUtility {
                 return String.localizedStringWithFormat(NSLocalizedString("_minutes_ago_", comment: ""), diff)
             }
         } else if ti < 86400 {
-            let diff = Int(round(ti / 60))
+            let diff = Int(round(ti / 60 / 60))
             if diff == 1 {
                 return NSLocalizedString("_an_hour_ago_", comment: "")
             } else {