Browse Source

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

cyberta 5 years ago
parent
commit
ca4f96c34d
1 changed files with 1 additions and 1 deletions
  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 = {