diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/qthelper.cpp | 2 |
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(); } |