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

@@ -29,7 +29,7 @@ CollectionFilterOptions::CollectionFilterOptions() : filter_mode_(FilterMode::Al
bool CollectionFilterOptions::Matches(const Song &song) const {
if (max_age_ != -1) {
const qint64 cutoff = QDateTime::currentDateTime().toSecsSinceEpoch() - max_age_;
const qint64 cutoff = QDateTime::currentSecsSinceEpoch() - max_age_;
if (song.ctime() <= cutoff) return false;
}