From: Sune Vuorela Date: Sun, 15 Feb 2015 21:51:44 +0000 Subject: Change creation date to a fixed date X-Git-Url: http://quickgit.kde.org/?p=qt%2Fqttools.git&a=commitdiff&h=d1e639a800a105f4611c87f024664559c7d33aaa --- Change creation date to a fixed date Encoding the dates makes reproducing the output impossible, and doesn't really have much gain. It most of the time not relevant when something was built, but more 'what was built' and 'with what tools was it built' In this case, the creation date isn't read by any thing, so it is likely just filler data. Keep the key anyways to not break any third party readers of the file and set a fixed date, in this case the same date as used for a fixed date in QtCore's QLibraryInfo::buildDate function at noon. Change-Id: I560e43dfce538e2f25c3cf51482b946a7cfa179e Reviewed-by: Christian Kandeler --- --- a/src/assistant/help/qhelpgenerator.cpp +++ b/src/assistant/help/qhelpgenerator.cpp @@ -369,9 +369,7 @@ d->query->exec(QLatin1String("INSERT INTO MetaDataTable VALUES('qchVersion', '1.0')")); - d->query->prepare(QLatin1String("INSERT INTO MetaDataTable VALUES('CreationDate', ?)")); - d->query->bindValue(0, QDateTime::currentDateTime().toString(Qt::ISODate)); - d->query->exec(); + d->query->exec(QLatin1String("INSERT INTO MetaDataTable VALUES('CreationDate', '2012-12-20T12:00:00')")); return true; }