summaryrefslogtreecommitdiffstats
path: root/src/assistant/help/qhelpcollectionhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/assistant/help/qhelpcollectionhandler.cpp')
-rw-r--r--src/assistant/help/qhelpcollectionhandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/assistant/help/qhelpcollectionhandler.cpp b/src/assistant/help/qhelpcollectionhandler.cpp
index 1116f750f..ca40f17d1 100644
--- a/src/assistant/help/qhelpcollectionhandler.cpp
+++ b/src/assistant/help/qhelpcollectionhandler.cpp
@@ -201,7 +201,7 @@ bool QHelpCollectionHandler::openCollectionFile()
timeStamp.folderId = m_query->value(1).toInt();
timeStamp.fileName = m_query->value(2).toString();
timeStamp.size = m_query->value(3).toInt();
- timeStamp.timeStamp = m_query->value(4).toString();
+ timeStamp.timeStamp = m_query->value(4).toDateTime();
timeStamps.append(timeStamp);
}
@@ -253,7 +253,7 @@ bool QHelpCollectionHandler::isTimeStampCorrect(const TimeStamp &timeStamp) cons
if (fi.size() != timeStamp.size)
return false;
- if (fi.lastModified().toString(Qt::ISODate) != timeStamp.timeStamp)
+ if (fi.lastModified(QTimeZone::UTC) != timeStamp.timeStamp)
return false;
m_query->prepare(QLatin1String("SELECT FilePath "
@@ -2173,7 +2173,7 @@ bool QHelpCollectionHandler::registerIndexTable(const QHelpDBReader::IndexTable
if (ok && sourceDateEpoch < lastModified.toSecsSinceEpoch())
lastModified.setSecsSinceEpoch(sourceDateEpoch);
}
- m_query->addBindValue(lastModified.toString(Qt::ISODate));
+ m_query->addBindValue(lastModified);
if (!m_query->exec())
return false;