~neon/qt/qttools

« back to all changes in this revision

Viewing changes to src/assistant/help/qhelpgenerator.cpp

  • Committer: Sune Vuorela
  • Date: 2015-02-18 19:42:55 UTC
  • Revision ID: git-v1: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 <christian.kandeler@theqtcompany.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
369
369
 
370
370
    d->query->exec(QLatin1String("INSERT INTO MetaDataTable VALUES('qchVersion', '1.0')"));
371
371
 
372
 
    d->query->prepare(QLatin1String("INSERT INTO MetaDataTable VALUES('CreationDate', ?)"));
373
 
    d->query->bindValue(0, QDateTime::currentDateTime().toString(Qt::ISODate));
374
 
    d->query->exec();
 
372
    d->query->exec(QLatin1String("INSERT INTO MetaDataTable VALUES('CreationDate', '2012-12-20T12:00:00')"));
375
373
 
376
374
    return true;
377
375
}