We came back from vacation a few days ago. After 450 some odd photos taken the first day on two cameras, I discovered camera #1 was 12 hrs and 1 minute ahead of camera #2 which had correct time. Since many of the pics were in the morning and early afternoon, the first camera had pictures on two different days: some in the afternoon of the same day and some in the wee hours of the next day.
I searched for some time looking for a tool to shift the date taken as displayed by Windows 7, back 12 hours. I got many hits on how to do it in Windows 7 but that feature has been removed, you can only change the date. After lurking a bit in a few forums, I discovered ExifTool. Went to the site, looked at the documentation for time shifting, saw the reference and syntax for -AllDates and decided to download the Windows standalone version.
I wrote this batch file and a few minutes later, all photos had the correct date and time:
@echo off
cls
c:
cd C:\Users\Jim\Desktop\EXIF Data Editor\exiftool-9.23
exiftool.exe -Alldates-=12:01 C:\Users\Jim\Desktop\Camera1
pause
ExifTool handled the date roll over properly and all photos on camera #1 now have correct date and time. Great product! (Yes I know you can embed the command line in the file name but batch seemed easier to me, just a personal preference and probably not a good one. By way of explanation, lines 3 & 4 in the batch file set the default directory to where exiftool.exe is stored. I deleted the (-k) in the name, not sure why.)
Thanks for this post. I'm glad you found ExifTool useful.
With the "pause" in your batch file, the "(-k)" is no longer necessary. (The exiftool -k option just pauses before terminating to keep the window open.)
- Phil