]> cloud.milkyroute.net Git - dolphin.git/commitdiff
GIT_SILENT Port remaining QDateTime::toTime_t usage in windows code path
authorAlexander Lohnau <alexander.lohnau@gmx.de>
Sun, 19 Dec 2021 13:10:13 +0000 (14:10 +0100)
committerAlexander Lohnau <alexander.lohnau@gmx.de>
Sun, 19 Dec 2021 13:10:13 +0000 (14:10 +0100)
src/tests/testdir.cpp

index c05752171e7dd3b836d1ab3f771b22f327c15278..5d75a5343baaef7175b75993f4217e7b3b608b39 100644 (file)
@@ -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;
     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<const wchar_t *>(path.utf16()), &utbuf);
 #endif
     utbuf.modtime = utbuf.actime;
     _wutime(reinterpret_cast<const wchar_t *>(path.utf16()), &utbuf);
 #endif