Commit 0d1d51ab authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

fall back to "Image DateTime" if DateTimeOriginal is unavailable

parent ae3883ee
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -157,6 +157,11 @@ class Thumbnail:
                dt = datetime.strptime(
                    self.exif_tag["Image DateTimeOriginal"].values, "%Y:%m:%d %H:%M:%S"
                )
            except (KeyError, ValueError):
                try:
                    dt = datetime.strptime(
                        self.exif_tag["Image DateTime"].values, "%Y:%m:%d %H:%M:%S"
                    )
                except (KeyError, ValueError):
                    pass