Browse Source

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

cyberta 5 năm trước cách đây
mục cha
commit
ca4f96c34d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 {
     func formattedSentDate() -> String {
-        return DateUtils.getBriefRelativeTimeSpanString(timeStamp: Double(sentDate.timeIntervalSince1970))
+        return DateUtils.getBriefRelativeTimeSpanString(timeStamp: Double(timestamp))
     }
     }
 
 
     lazy var kind: MessageKind = {
     lazy var kind: MessageKind = {