diff options
| author | Alexander Lohnau <[email protected]> | 2021-12-19 14:10:13 +0100 |
|---|---|---|
| committer | Alexander Lohnau <[email protected]> | 2021-12-19 14:10:13 +0100 |
| commit | 2f62b054eabffb657976f94abd49c6445878b647 (patch) | |
| tree | 4f4206f04393035cc44703c289ccd26baf3def74 /src/tests | |
| parent | caf49dafa557caa9bd985702a240284348c82b40 (diff) | |
GIT_SILENT Port remaining QDateTime::toTime_t usage in windows code path
Diffstat (limited to 'src/tests')
| -rw-r--r-- | src/tests/testdir.cpp | 2 |
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 |
