summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2023-01-02 16:01:43 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-01-02 21:22:22 +0000
commit61be55e688111a8b0ff86d42a698b5da74b6ddf7 (patch)
treed67adc56d9753a02c0e63f630d6f407f7385a06f
parentb657023ef512f8fbe8fe2600c5c69525bfdf75d8 (diff)
Assistant: use QDateTime::currentDateTimeUtc()
... instead of currentDateTime(). Apart from avoiding certain false results twice a year, during DST transition times, the UTC version is also orders of magnitude faster than the local-time version. Change-Id: I4330e51217c86dc9b073505c971ba99a74629fb7 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit 0346ae7ca6c9a3e7368927aa1e93cc8e9ab8ebf4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/assistant/assistant/helpenginewrapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/assistant/assistant/helpenginewrapper.cpp b/src/assistant/assistant/helpenginewrapper.cpp
index 5c9e5044e..9565680d8 100644
--- a/src/assistant/assistant/helpenginewrapper.cpp
+++ b/src/assistant/assistant/helpenginewrapper.cpp
@@ -738,7 +738,7 @@ void HelpEngineWrapperPrivate::qchFileChanged(const QString &fileName,
*/
const auto &it = m_recentQchUpdates.find(fileName);
- const QDateTime &now = QDateTime::currentDateTime();
+ const QDateTime now = QDateTime::currentDateTimeUtc();
// Case 1: This is the first recent signal for the file.
if (it == m_recentQchUpdates.end()) {