Use QDateTime::currentSecsSinceEpoch

This commit is contained in:
Jonas Kvinge
2024-04-23 16:48:51 +02:00
parent 579349b104
commit 398db964b8
6 changed files with 11 additions and 11 deletions

View File

@@ -248,7 +248,7 @@ bool TagReaderTagLib::ReadFile(const QString &filename, spb::tagreader::SongMeta
song->set_ctime(song->mtime());
}
song->set_lastseen(QDateTime::currentDateTime().toSecsSinceEpoch());
song->set_lastseen(QDateTime::currentSecsSinceEpoch());
std::unique_ptr<TagLib::FileRef> fileref(factory_->GetFileRef(filename));
if (fileref->isNull()) {