I traveled to a different time zone. I was taking pictures with both my camera and phone.
My pictures are sorted by capture time, they are in the wrong order. My phone adjusted to the correct time zone, but I forgot to change my camera time settings before shooting.
I don’t see a way to correct the datetime in the metadata editor. The image information panel is un-editable.
Is there an external program on Windows (or linux) I could use to adjust the time and get DT to re-read the correct time? I’d want it to read the time, add an offset (e.g. 2 hours), then write that back. It’s several hundred photos that internally have the wrong time.
Also, you may want to re-import your files after changing the EXIF info. For the changed files, you’ll have an inconsistency between the database (and possible sidecars) and the image files. Re-importing corrects that, and makes the new times visible to darktable. (I don’t think darktable scans for changes in image files on startup)
My camera was 1 hour ahead. Below command subtracted 1 hour in all the Sony ARW and JPG, leaving my phone’s pictures un-touched. I had the DT XMP in the folder, too, and it just ignored them.
exiftool -alldates-=1 -overwrite_original DSC*.*
Removing and re-importing, the darktable datetime values showed the change. Both the ARW and JPG showed the corrected time. All of my photos were GPS tagged. I was able to check them in map view. The photo order is now correct in time and space.
Internal to the image files, some of the metadata is inconsistent. The use of the “alldates” tag was good enough for what darktable needed without needing to fix ALL of the time tags individually.