Darkroom timer · estimate

Camera clock offset calculator

If a camera's clock was set wrong, the photos it took carry the wrong date and time, and any timeline sorted by those dates puts them in the wrong place. Enter the time one photo shows and the time it was really taken. The calculator gives the shift to apply to photos taken while the camera's clock had that same offset.

Work out the offset

The capture time in the photo's details, as the camera recorded it.

For example, the time on a clock or phone screen you photographed with the same camera.

Enter both times to see the offset.

Work out the offset first, then enter another photo's time here.

How the offset is worked out

offset = real time − time the photo shows

Assumptions behind the estimate

Before you run the command

The command is a starting point. Check the shift syntax against the ExifTool documentation below, run it on copies of your photos first, and compare one corrected photo with the real time before you change a whole folder. The command shifts the DateTimeOriginal, CreateDate and ModifyDate timestamps where a file has them and they can be written (that is what ExifTool's AllDates shortcut covers). Put only copies of the photos from that one batch in the folder, so photos with a different offset are not shifted. Replace /path/to/copies with your own folder.

References