diff options
author | Marc Mutz <marc.mutz@qt.io> | 2023-01-02 16:01:43 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2023-01-02 19:28:29 +0100 |
commit | 0346ae7ca6c9a3e7368927aa1e93cc8e9ab8ebf4 (patch) | |
tree | 7cf574839c681f3fa08b40311881c9055ea16775 | |
parent | e92247dcc3bd62b2343e0836d934b4b09f8455cf (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.
Pick-to: 6.5 6.4
Change-Id: I4330e51217c86dc9b073505c971ba99a74629fb7
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
-rw-r--r-- | src/assistant/assistant/helpenginewrapper.cpp | 2 |
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()) { |