From 56f13a4e4c6d17ab6b92b26f2a207cb111a77fec Mon Sep 17 00:00:00 2001 From: MSP Date: Tue, 19 Nov 2024 18:27:45 +0000 Subject: [PATCH] Additional fix for #1703 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