Skip to content

Commit

Permalink
Don't consider timezone-aware fields specially (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
SmilyOrg authored Feb 25, 2024
2 parents 73fca6d + 098aeb9 commit 1cca67b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/image/exiftool-mostlygeek.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (decoder *ExifToolMostlyGeekLoader) DecodeInfo(path string, info *Info) ([]
if strings.Contains(name, "Date") || strings.Contains(name, "Time") {
if info.DateTime.IsZero() {
info.DateTime, _, _, _ = parseDateTime(value)
} else if name != "FileModifyDate" && name != "FileCreateDate" {
} else if name != "GPSDateTime" && name != "FileModifyDate" && name != "FileCreateDate" {
// Prefer time with timezone if available
t, hasTimezone, _, _ := parseDateTime(value)
if hasTimezone && info.DateTime.Location() == time.UTC {
Expand Down

0 comments on commit 1cca67b

Please sign in to comment.