mirror of
https://invent.kde.org/system/dolphin
synced 2024-07-04 17:30:55 +00:00
Port deprecated QDateTime::toTime_t method call
This commit is contained in:
parent
fd717b88fa
commit
ec0baf067d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user