From: Alexander Lohnau Date: Mon, 13 Dec 2021 09:40:02 +0000 (+0100) Subject: Port deprecated QDateTime::toTime_t method call X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/ec0baf067d01a84854866a06f9dc3bcfa1d85df3?ds=sidebyside Port deprecated QDateTime::toTime_t method call --- diff --git a/src/tests/testdir.cpp b/src/tests/testdir.cpp index 51dbdbc58..c05752171 100644 --- a/src/tests/testdir.cpp +++ b/src/tests/testdir.cpp @@ -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)