Skip to content

Commit 1d379ae

Browse files
committedNov 13, 2018
replace toTime_t ->toSecsSinceEpoch
1 parent b465345 commit 1d379ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/qgsproject.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1877,7 +1877,7 @@ bool QgsProject::writeProjectFile( const QString &filename )
18771877
}
18781878

18791879
QFileInfo fi( fileName() );
1880-
struct utimbuf tb = { static_cast<time_t>( fi.lastRead().toTime_t() ), static_cast<time_t>( fi.lastModified().toTime_t() ) };
1880+
struct utimbuf tb = { static_cast<time_t>( fi.lastRead().toSecsSinceEpoch() ), static_cast<time_t>( fi.lastModified().toSecsSinceEpoch() ) };
18811881
utime( backupFile.fileName().toUtf8().constData(), &tb );
18821882
}
18831883

0 commit comments

Comments
 (0)
Please sign in to comment.