Author Topic: Forgot to switch off Daylight Savings option  (Read 2744 times)

Erni76

  • Newbie
  • *
  • Posts: 2
Forgot to switch off Daylight Savings option
« 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:
Code: [Select]
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:
Code: [Select]
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


Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16879
    • ExifTool Home Page
Re: Forgot to switch off Daylight Savings option
« Reply #1 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 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:

Code: [Select]
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 if you are wondering what any of these options are for.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Erni76

  • Newbie
  • *
  • Posts: 2
Re: Forgot to switch off Daylight Savings option
« Reply #2 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