mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
9e457e092c
commit
99bc940551
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue