ExifTool is a free, cross-platform tool for reading and writing Exif data in image files. It can be used on its own from the command line, or it can be used by other programs such as Prune and Geotag to read and write coordinate information in photographs.
It supports a wide variety of image types, including JPEGs and RAW format images.
If you forgot to sync your camera with atomic time, consider the following hint:
exiftool -AllDates-=1:08:19 ./path/to/directory exiftool '-DateTimeOriginal>FileModifyDate' ./path/to/directory
Older cameras, especially mobile phones, may not set the DateTimeOriginal field of EXIF data, but store the recording time in file modification time. exiftool can be used to set the mentioned EXIF field in the following way:
exiftool '-FileModifyDate>DateTimeOriginal' ./path/to/directory
See example at Geotagging Source Photos