]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Port deprecated QDateTime::toTime_t method call
authorAlexander Lohnau <alexander.lohnau@gmx.de>
Mon, 13 Dec 2021 09:40:02 +0000 (10:40 +0100)
committerAlexander Lohnau <alexander.lohnau@gmx.de>
Mon, 13 Dec 2021 09:40:02 +0000 (10:40 +0100)
src/tests/testdir.cpp

index 51dbdbc580006f5a65e99e3f640b5a453e7cd987..c05752171e7dd3b836d1ab3f771b22f327c15278 100644 (file)
@@ -31,7 +31,7 @@ static void setTimeStamp(const QString& path, const QDateTime& mtime)
 {
 #ifdef Q_OS_UNIX
     struct utimbuf utbuf;
-    utbuf.actime = mtime.toTime_t();
+    utbuf.actime = mtime.toSecsSinceEpoch();
     utbuf.modtime = utbuf.actime;
     utime(QFile::encodeName(path), &utbuf);
 #elif defined(Q_OS_WIN)