summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-03-22 07:40:29 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-03-22 07:40:32 -0700
commit99bc940551313895ad44d425c927eb34217c508e (patch)
tree4e66228d3a52ec20f80d061aded558650cfb02cf /core
parent9e457e092c9e0a541228274da2e8087d40fa2769 (diff)
downloadsubsurface-99bc940551313895ad44d425c927eb34217c508e.tar.gz
Use older API to remove dependency on Qt 5.8 or newer
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core')
-rw-r--r--core/qthelper.cpp2
1 files changed, 1 insertions, 1 deletions
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();
}