┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/tests/testdir.cpp
diff options
context:
space:
mode:
authorAlexander Lohnau <[email protected]>2021-12-19 14:10:13 +0100
committerAlexander Lohnau <[email protected]>2021-12-19 14:10:13 +0100
commit2f62b054eabffb657976f94abd49c6445878b647 (patch)
tree4f4206f04393035cc44703c289ccd26baf3def74 /src/tests/testdir.cpp
parentcaf49dafa557caa9bd985702a240284348c82b40 (diff)
GIT_SILENT Port remaining QDateTime::toTime_t usage in windows code path
Diffstat (limited to 'src/tests/testdir.cpp')
-rw-r--r--src/tests/testdir.cpp2
1 files changed, 1 insertions, 1 deletions
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<const wchar_t *>(path.utf16()), &utbuf);
#endif