Explorar o código

don't convert from timestamp to Date and then back to timestamp

cyberta %!s(int64=5) %!d(string=hai) anos
pai
achega
ca4f96c34d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      deltachat-ios/DC/Wrapper.swift

+ 1 - 1
deltachat-ios/DC/Wrapper.swift

@@ -556,7 +556,7 @@ class DcMsg: MessageType {
     }()
 
     func formattedSentDate() -> String {
-        return DateUtils.getBriefRelativeTimeSpanString(timeStamp: Double(sentDate.timeIntervalSince1970))
+        return DateUtils.getBriefRelativeTimeSpanString(timeStamp: Double(timestamp))
     }
 
     lazy var kind: MessageKind = {