We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent b465345 commit 1d379aeCopy full SHA for 1d379ae
src/core/qgsproject.cpp
@@ -1877,7 +1877,7 @@ bool QgsProject::writeProjectFile( const QString &filename )
1877
}
1878
1879
QFileInfo fi( fileName() );
1880
- struct utimbuf tb = { static_cast<time_t>( fi.lastRead().toTime_t() ), static_cast<time_t>( fi.lastModified().toTime_t() ) };
+ struct utimbuf tb = { static_cast<time_t>( fi.lastRead().toSecsSinceEpoch() ), static_cast<time_t>( fi.lastModified().toSecsSinceEpoch() ) };
1881
utime( backupFile.fileName().toUtf8().constData(), &tb );
1882
1883
0 commit comments