From ec0baf067d01a84854866a06f9dc3bcfa1d85df3 Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Mon, 13 Dec 2021 10:40:02 +0100 Subject: [PATCH] Port deprecated QDateTime::toTime_t method call --- src/tests/testdir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.3