diff options
author | link2xt <link2xt@testrun.org> | 2021-08-28 12:03:48 +0000 |
---|---|---|
committer | link2xt <link2xt@testrun.org> | 2021-08-28 15:05:39 +0300 |
commit | 6d2fc32a423b7b470521c67d94d9b59c168a948f (patch) | |
tree | d5eb1cdf41c769a9b7aea5677eff2f4b193452f8 /message.cpp | |
parent | 7767e2843c0301bb8ee64eca324707cc93dcad09 (diff) | |
download | kdeltachat-6d2fc32a423b7b470521c67d94d9b59c168a948f.tar.gz kdeltachat-6d2fc32a423b7b470521c67d94d9b59c168a948f.zip |
Show message timestamps
Diffstat (limited to 'message.cpp')
-rw-r--r-- | message.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/message.cpp b/message.cpp index 90723d9..4aae043 100644 --- a/message.cpp +++ b/message.cpp @@ -46,6 +46,12 @@ DcMessage::getState() return dc_msg_get_state(m_message); } +QDateTime +DcMessage::getTimestamp() +{ + return QDateTime::fromSecsSinceEpoch (dc_msg_get_timestamp(m_message), Qt::UTC); +} + void DcMessage::setText(QString text) { |