Fix dateShot bug in processImage

This commit is contained in:
viktorstrate
2019-08-21 19:14:23 +02:00
parent e5688bdee8
commit 7238953d38

View File

@@ -33,6 +33,7 @@ async function addExifTags({ session, photo }) {
lens: rawTags.LensType,
dateShot:
rawTags.DateTimeOriginal &&
typeof rawTags.DateTimeOriginal.toDate == 'function' &&
NeoDateTime.fromStandardDate(rawTags.DateTimeOriginal.toDate()),
fileSize: rawTags.FileSize,
exposure: rawTags.ShutterSpeedValue,