Commit ec0baf06 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Port deprecated QDateTime::toTime_t method call

parent fd717b88
Pipeline #109123 passed with stage
in 4 minutes and 58 seconds
......@@ -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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment