From c51be18d28479a3fd63fc6c21c28c9696ea80880 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Du=C5=A1an=20Poizl?= Date: Mon, 11 Apr 2022 10:33:53 +0200 Subject: [PATCH] Store UTC mtime not local one --- database.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database.cpp b/database.cpp index 7976fea..0c1adf7 100644 --- a/database.cpp +++ b/database.cpp @@ -161,12 +161,12 @@ bool Database::indexDir2(const QDir &dir, QProgressDialog *progress) progress->setValue(m_progress++); if(progress->wasCanceled())return false; QString filePath = file.absoluteFilePath(); - QString mtime = file.fileTime(QFileDevice::FileModificationTime).toString(Qt::ISODate); + QString mtime = file.fileTime(QFileDevice::FileModificationTime).toUTC().toString(Qt::ISODate); m_checkFile.bindValue(0, filePath); m_checkFile.exec(); if(m_checkFile.next()) { - if(m_checkFile.value(1).toString() == file.fileTime(QFileDevice::FileModificationTime).toString(Qt::ISODate)) + if(m_checkFile.value(1).toString() == mtime) continue; else {