Use older API to remove dependency on Qt 5.8 or newer

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2018-03-22 07:40:29 -07:00
parent 9e457e092c
commit 99bc940551

View file

@ -406,7 +406,7 @@ extern "C" timestamp_t picture_get_timestamp(const char *filename)
// If we couldn't parse EXIF data, use file creation date.
// TODO: QFileInfo::created is deprecated in newer Qt versions.
QDateTime created = QFileInfo(QString(filename)).created();
return created.toSecsSinceEpoch();
return created.toMSecsSinceEpoch() / 1000;
}
return exif.epoch();
}