Port away from deprecated QDateTime::.toTime_t method

This commit is contained in:
Alexander Lohnau 2021-11-11 19:54:44 +01:00
parent e30494323d
commit bff2ef9385

View file

@ -264,7 +264,7 @@ QString PlacesItem::generateNewId()
// " (V2)" to indicate that the ID has been generated by
// a new version of the places view.
static int count = 0;
return QString::number(QDateTime::currentDateTimeUtc().toTime_t()) +
return QString::number(QDateTime::currentDateTimeUtc().toSecsSinceEpoch()) +
'/' + QString::number(count++) + " (V2)";
}