From c366d75774fa398f00df0538efd6e5cb18765999 Mon Sep 17 00:00:00 2001 From: Luca Carlon Date: Fri, 22 Jul 2022 10:13:18 +0200 Subject: [PATCH] Exif: Extract creation time from DateTimeCreated, if available #2513 Exiftool also seems to be able to extract the compound DateTimeCreated tag. Adding this tag increases the likelihood that you will get a valid date for a photo. --- internal/meta/exif.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/meta/exif.go b/internal/meta/exif.go index 3a3dd3c09..f2bcbd5d6 100644 --- a/internal/meta/exif.go +++ b/internal/meta/exif.go @@ -25,7 +25,7 @@ import ( var exifIfdMapping *exifcommon.IfdMapping var exifTagIndex = exif.NewTagIndex() var exifMutex = sync.Mutex{} -var exifDateTimeTags = []string{"DateTimeOriginal", "DateTimeDigitized", "CreateDate", "DateTime"} +var exifDateTimeTags = []string{"DateTimeOriginal", "DateTimeDigitized", "CreateDate", "DateTime", "DateTimeCreated"} var exifSubSecTags = []string{"SubSecTimeOriginal", "SubSecTimeDigitized", "SubSecTime"} func init() {