summaryrefslogtreecommitdiff
path: root/src/assistant/qcollectiongenerator
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2016-06-21 14:40:21 -0700
committerThiago Macieira <thiago.macieira@intel.com>2016-06-22 16:06:42 +0000
commitf67b1a1586a6404c3e60caf454da2c76a5c3d9c8 (patch)
tree751a4fd90a1b388a5d028649c7421d0427add8b2 /src/assistant/qcollectiongenerator
parenta4dda9d1ac4223907a434901714f8d68f04bc466 (diff)
downloadqttools-f67b1a1586a6404c3e60caf454da2c76a5c3d9c8.tar.gz
Use QDateTime::currentMSecsSinceEpoch() instead of currentDateTime
More efficient if all you want is the number of seconds. Change-Id: Ib57b52598e2f452985e9fffd145a371c65f88f3f Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'src/assistant/qcollectiongenerator')
-rw-r--r--src/assistant/qcollectiongenerator/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/assistant/qcollectiongenerator/main.cpp b/src/assistant/qcollectiongenerator/main.cpp
index 02ed74123..4270f9a19 100644
--- a/src/assistant/qcollectiongenerator/main.cpp
+++ b/src/assistant/qcollectiongenerator/main.cpp
@@ -512,7 +512,7 @@ int main(int argc, char *argv[])
CollectionConfiguration::setAddressBarVisible(helpEngine,
!config.hideAddressBar());
CollectionConfiguration::setCreationTime(helpEngine,
- QDateTime::currentDateTime().toTime_t());
+ QDateTime::currentMSecsSinceEpoch() / 1000);
CollectionConfiguration::setFullTextSearchFallbackEnabled(helpEngine,
config.fullTextSearchFallbackEnabled());