diff --git a/photoimport.py b/photoimport.py index 9a7cd9d..dd4651f 100644 --- a/photoimport.py +++ b/photoimport.py @@ -14,7 +14,7 @@ def get_exif_date(file_path): # Command: exiftool -d "Format" -CreateDate "file_path" # The -d option allows specifying the desired output format. result = subprocess.run( - ['exiftool', '-d', "%Y-%m-%d %H:%M:%S", '-CreateDate', file_path], + ['exiftool', '-d', "%Y-%m-%d", '-CreateDate', file_path], capture_output=True, text=True, check=True