From: Alexander Lohnau Date: Sun, 19 Dec 2021 13:10:13 +0000 (+0100) Subject: GIT_SILENT Port remaining QDateTime::toTime_t usage in windows code path X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/2f62b054eabffb657976f94abd49c6445878b647 GIT_SILENT Port remaining QDateTime::toTime_t usage in windows code path --- diff --git a/src/tests/testdir.cpp b/src/tests/testdir.cpp index c05752171..5d75a5343 100644 --- a/src/tests/testdir.cpp +++ b/src/tests/testdir.cpp @@ -36,7 +36,7 @@ static void setTimeStamp(const QString& path, const QDateTime& mtime) utime(QFile::encodeName(path), &utbuf); #elif defined(Q_OS_WIN) struct _utimbuf utbuf; - utbuf.actime = mtime.toTime_t(); + utbuf.actime = mtime.toSecsSinceEpoch(); utbuf.modtime = utbuf.actime; _wutime(reinterpret_cast(path.utf16()), &utbuf); #endif