From 3f1695553123494e0f6cb1ee8ea679411ff646f8 Mon Sep 17 00:00:00 2001 From: akoen Date: Wed, 12 Aug 2020 20:30:42 -0700 Subject: [PATCH] Use -api QuickTimeUTC by default According to the EXIF and QuickTime standard, photos should be stored in local time while videos should be stored in UTC time. Since many cameras don't respect this standard, exiftool ignores it by default. However, by adding -api QuickTimeUTC to the exiftool command, the dates are handled appropriately. --- elodie.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/elodie.py b/elodie.py index 521548c2..f2faaa94 100755 --- a/elodie.py +++ b/elodie.py @@ -371,7 +371,9 @@ def main(): if __name__ == '__main__': #Initialize ExifTool Subprocess exiftool_addedargs = [ - u'-config', + u'-api', + u'QuickTimeUTC', + u'-config', u'"{}"'.format(constants.exiftool_config) ] with ExifTool(executable_=get_exiftool(), addedargs=exiftool_addedargs) as et: