ExifTool Forum

General => Metadata => Topic started by: Uwe on April 13, 2019, 07:14:08 AM

Title: Exif:DateTimeOriginal - check if seconds exist and set seconds value
Post by: Uwe on April 13, 2019, 07:14:08 AM
Hello,
because of a bug in a program the Exif tag DateTimeOriginal was set like: 2018:03:11 10:28:
That means the seconds value is missing and I get problems with programs like GeoSetter.
I would like to find all files with this wrong situation by an ExifTool command and then set the seconds value to "00".
Is there anybody who can help?
Regards, Uwe
Title: Re: Exif:DateTimeOriginal - check if seconds exist and set seconds value
Post by: Hayo Baan on April 13, 2019, 07:26:29 AM
Hi Uwe,

This simple command should do the trick:
exiftool "-DateTimeOriginal<DateTimeOriginal" FILESorDIRS
Title: Re: Exif:DateTimeOriginal - check if seconds exist and set seconds value
Post by: Uwe on April 13, 2019, 07:43:47 AM
Hi Hayo,
thanks a lot - it works. I didn't expect that simple way to write back the tag.
Have a nice weekend,
Uwe