diff options
| author | Alexander Lohnau <[email protected]> | 2021-12-13 10:40:02 +0100 |
|---|---|---|
| committer | Alexander Lohnau <[email protected]> | 2021-12-13 10:40:02 +0100 |
| commit | ec0baf067d01a84854866a06f9dc3bcfa1d85df3 (patch) | |
| tree | 6b021a1ae3b6615326e2448d1d6da113d18db5c6 /src | |
| parent | fd717b88faab656205c2b5712959f9fd48e433a5 (diff) | |
Port deprecated QDateTime::toTime_t method call
Diffstat (limited to 'src')
| -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 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) |
