Display Database created timestamp in database reports (#6876)

* Fixes #6356
This commit is contained in:
Paul Colby 2021-08-30 05:34:16 +10:00 committed by GitHub
parent e8f2c9d126
commit 37d29b5e8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -211,6 +211,8 @@ void ReportsWidgetStatistics::calculateStats()
addStatsRow(tr("Database name"), m_db->metadata()->name());
addStatsRow(tr("Description"), m_db->metadata()->description());
addStatsRow(tr("Location"), m_db->filePath());
addStatsRow(tr("Database created"),
m_db->rootGroup()->timeInfo().creationTime().toString(Qt::DefaultLocaleShortDate));
addStatsRow(tr("Last saved"), stats->modified.toString(Qt::DefaultLocaleShortDate));
addStatsRow(tr("Unsaved changes"),
m_db->isModified() ? tr("yes") : tr("no"),