summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/pyggle7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/pyggle b/bin/pyggle
index c5d97f7..7b1dfb7 100755
--- a/bin/pyggle
+++ b/bin/pyggle
@@ -158,7 +158,12 @@ class Thumbnail:
self.exif_tag["Image DateTimeOriginal"].values, "%Y:%m:%d %H:%M:%S"
)
except (KeyError, ValueError):
- pass
+ try:
+ dt = datetime.strptime(
+ self.exif_tag["Image DateTime"].values, "%Y:%m:%d %H:%M:%S"
+ )
+ except (KeyError, ValueError):
+ pass
if dt:
self.exif_dt = dt