as much as it did. For legacy reasons, the "creation time" in the
[Exif](https://en.wikipedia.org/wiki/Exif) metadata attached to digital
camera pictures is not expressed in absolute time, but rather in some
-arbitrary express of "local" time! This caused me to spend a long evening
+arbitrary expression of "local" time! This caused me to spend a long evening
learning how to twiddle Exif data, and then how to convince
[Piwigo](https://piwigo.org/) to use the updated metadata. In case I or
someone else need to do this in the future, it seems worth taking the time
advantage of the function that allows here to set the local time from the
GPS time. But of course, that only helps future photos...
-# The problem
+# How I fixed the problem
So the problem in front of me was several thousand images taken with the
camera's clock "off" by 15 hours and 5 minutes. We figured that out by a
was originally set by hand, and drift of the camera's clock in the many
months since then.
+I thought briefly about hacking Piwigo to use the GPS time stamps, but quickly
+realized that wouldn't actually solve the problem, since they're in UTC and
+the pictures from our phone cameras were all using local time. There's
+probably a solution lurking there somewhere, but just fixing up the times in
+the photo files that were wrong seemed like an easier path forward.
+
A Google search or two later, and I found
[jhead](https://www.sentex.ca/~mwandel/jhead/),
which fortunately was already packaged for Debian. It makes changing Exif
done
</pre>
-At this point, all the files on disk wer updated, as a little quick checking
+At this point, all the files on disk were updated, as a little quick checking
with exif and exiv2 at the command line confirmed. But my second problem
was figuring out how to get Piwigo to notice and incorporate the changes. That
turned out to be easier than I thought! Using the admin interface to go into
photos in the resulting set, and performed action "synchronize metadata". All
the selected image files were rescanned, the database got updated...
-Voila!
-
+Voila! Happy wife!