diff --git a/osxphotos/exifutils.py b/osxphotos/exifutils.py index af11e6c5..614ae659 100644 --- a/osxphotos/exifutils.py +++ b/osxphotos/exifutils.py @@ -122,6 +122,11 @@ def get_exif_date_time_offset( dt = f"{matched.group(1)} 00:00:00" default_time = True + if offset: + # make sure we have offset + if not re.match(r"([+-]\d{2}:\d{2})", offset): + offset = None + offset_seconds = exif_offset_to_seconds(offset) if offset else None if dt: