ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Erni76 on December 26, 2013, 06:12:59 PM

Title: Forgot to switch off Daylight Savings option
Post by: Erni76 on December 26, 2013, 06:12:59 PM
Hello All,

I forgot to switch off Daylight Savings option in my camera.
As a result of it I have a lot of pictures with wrong time in it.

Here is a example:
ExifTool Version Number         : 9.45
.
Date/Time Original              : 2013:12:25 23:11:38
Create Date                     : 2013:12:25 23:11:38
.
Daylight Savings                : Yes
.
Create Date                     : 2013:12:25 23:11:38.80
Date/Time Original              : 2013:12:25 23:11:38.80
Modify Date                     : 2013:12:25 23:11:38.80


Here is what i expect:
ExifTool Version Number         : 9.45
.
Date/Time Original              : 2013:12:25 22:11:38
Create Date                     : 2013:12:25 22:11:38
.
Daylight Savings                : No
.
Create Date                     : 2013:12:25 22:11:38.80
Date/Time Original              : 2013:12:25 22:11:38.80
Modify Date                     : 2013:12:25 22:11:38.80


Is there any simple way to adjust all above tags in batch of files using exiftool.exe tool?
Thanks in advance for any help :)

Arnold

Title: Re: Forgot to switch off Daylight Savings option
Post by: Phil Harvey on December 26, 2013, 07:55:54 PM
Hi Arnold,

The basic command to move back the common date/time values by one hour is:

exiftool -alldates-=1 DIR

where DIR is the name of the directory containing the images.  AllDates is a Shortcut tag (https://exiftool.org/TagNames/Shortcuts.html) representing the common EXIF date/time tags.

I just discovered today that I had this exact same problem with one of my cameras, and this is the command that I used to fix the images:

exiftool -alldates-=1 -filemodifydate-=1 -ext jpg -if '$model=~/K-5/ and $datetimeoriginal ge "2013:11:04"' -overwrite_original -r /Users/phil/Pictures

(note that I am on a Mac, so I used single quotes.  Windows users should swap the single for double quotes, and visa versa.)

Read up in the application documentation (https://exiftool.org/exiftool_pod.html) if you are wondering what any of these options are for.

- Phil
Title: Re: Forgot to switch off Daylight Savings option
Post by: Erni76 on December 26, 2013, 08:30:34 PM
Hi Phil,

Thanks a lot for your help and quick respond.
With this documentation in html it will be much easier
to work out meaning of all those option than looking for it in a cmd window  ;)

Thanks a lot and Happy New Year  :)
PS.  Your software is awesome  ;D

- Arnold