Ver Fonte

fix date diff

Signed-off-by: Marino Faggiana <8616947+marinofaggiana@users.noreply.github.com>
Marino Faggiana há 1 ano atrás
pai
commit
a66fc72d8f
1 ficheiros alterados com 1 adições e 1 exclusões
  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 {