From 56a6601b5d26527bf57802e0c44fe7f6a8decb01 Mon Sep 17 00:00:00 2001 From: oPromessa Date: Sun, 5 Jan 2025 00:03:23 +0000 Subject: [PATCH] Additional fix for #1703 (#1773) Missed one test. --- osxphotos/exifutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osxphotos/exifutils.py b/osxphotos/exifutils.py index aee300f1..cf7b0816 100644 --- a/osxphotos/exifutils.py +++ b/osxphotos/exifutils.py @@ -122,7 +122,7 @@ def get_exif_date_time_offset( dt = f"{matched.group(1)} 00:00:00" default_time = True - if offset: + if offset is not None: # make sure we have offset if not re.match(r"([+-]\d{2}:\d{2})", offset): offset = None