From 2f62b054eabffb657976f94abd49c6445878b647 Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Sun, 19 Dec 2021 14:10:13 +0100 Subject: [PATCH] GIT_SILENT Port remaining QDateTime::toTime_t usage in windows code path --- 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 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 -- 2.47.3