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

Port away from deprecated QDateTime::.toTime_t method

parent e3049432
......@@ -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)";
}
......
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