From 3285fc59d03dc6f5b7b10bbafb4828049e595e49 Mon Sep 17 00:00:00 2001 From: Kateryna Kostiuk <kateryna.kostiuk@savoirfairelinux.com> Date: Wed, 26 Apr 2017 09:21:58 -0400 Subject: [PATCH] fix: timestamp in contactMethod is not updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit fix value of startTimeStamp in Call.cpp when a new contactMethod is created. It fix two problems: -filter rows in SmartView -update contactMethod lastUsedTime Tuleap: #1585 Change-Id: I6f03db26e844531ee6954c835e43d19f24e16633 Reviewed-by: Nicolas Jäger <nicolas.jager@savoirfairelinux.com> --- src/call.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/call.cpp b/src/call.cpp index d8993cbb..2b199513 100644 --- a/src/call.cpp +++ b/src/call.cpp @@ -556,8 +556,7 @@ Call* Call::buildHistoryCall(const QMap<QString,QString>& hc) // fix invalid time values if (startTimeStamp <= 0) { - // currentSecsSinceEpoch is available only from 5.8 - startTimeStamp = (QDateTime::currentDateTime().currentMSecsSinceEpoch()) * Q_INT64_C(1000); + startTimeStamp = (QDateTime::currentDateTime().currentMSecsSinceEpoch()) / Q_INT64_C(1000); stopTimeStamp = startTimeStamp; } else if (stopTimeStamp <= 0) { stopTimeStamp = startTimeStamp; -- GitLab