From 99bc940551313895ad44d425c927eb34217c508e Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 22 Mar 2018 07:40:29 -0700 Subject: Use older API to remove dependency on Qt 5.8 or newer Signed-off-by: Dirk Hohndel --- core/qthelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/qthelper.cpp') diff --git a/core/qthelper.cpp b/core/qthelper.cpp index 0d072b461..93c95ab5e 100644 --- a/core/qthelper.cpp +++ b/core/qthelper.cpp @@ -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(); } -- cgit v1.2.3-70-g09d2