Photo Timestamps: Why EXIF Says the Wrong Time, and How to Fix It
You look at a photo's metadata and the time is wrong. Not by minutes, sometimes by hours. The picture was taken at 8 in the evening but EXIF says 4 in the afternoon. Or a photo from your holiday reads two hours later than you remember. The timestamp in a photo is one of the most quoted metadata fields and one of the least understood, because it isn't one clock, it's several, and none of them agree by default.
There are three clocks in every photo
A typical photo from a phone or camera carries more than one time field:
- DateTimeOriginal. When the shutter fired, in local time as the camera understood it. This is the field most tools display.
- DateTimeDigitized. When the file was written. Usually identical to the original, but it differs for scans, screenshots and edits.
- DateTime (Modify Date). When the file was last changed. Every edit, every export, every sync can rewrite this one. It says more about the file's history than the moment of capture.
- GPSDateTime, where GPS exists. UTC, the actual atomic-clock time from the satellites, written at the moment of the fix.
None of these carry a timezone. EXIF timestamps are naive: a plain string like 2026:11:04 20:15:33 with no offset attached. Newer phones add OffsetTimeOriginal fields to fix this, but only recent models write them, and every tool that ignores them is back to guessing.
The four common ways the time goes wrong
Timezone shifts. A phone set to Dubai time photographs in Dubai local time, then the same phone flies to London and keeps photographing in London local time. Put both files in one folder and their timestamps disagree by four hours even though the camera knew exactly what it was doing. This is why "what time was this taken" needs two answers: local time, and UTC. GPSDateTime gives you the second one, and the difference between it and DateTimeOriginal tells you the offset the camera was using.
Clock drift. A camera with no time sync runs on its own quartz, and consumer cameras drift by seconds per week to minutes per year. Cameras that sit in a drawer between trips are the worst: the battery died at some point, and when it came back the clock restarted at a default date. Photos with a 2019 timestamp taken in 2026 are a classic estate-sale find.
The 12-hour AM/PM mistake. Set the camera clock at 1 in the afternoon and enter 1 in the morning by mistake, and every photo for the next year sits 12 hours off. It survives until the owner tries to sort a trip chronologically and the evening shots land before the morning ones.
Platform rewrites. Messaging apps and social platforms strip EXIF wholesale, which kills the capture time, then the file's filesystem date becomes the only "when" left, and that is the date of the download, not the shutter. If you're reading a timestamp from a file that came out of WhatsApp, you are reading a fiction.
Why anyone cares
Sorting is the everyday reason. Travel photos across timezones sort wrong, and a batch from two cameras with different clocks interleaves badly. Editing tools that say "sort by capture time" believe the embedded field blindly.
Privacy is the serious one. A timestamp is half of a location. A photo that says 6:42 AM on a workday, plus the same face in a known lobby, plus a timezone, narrows where someone lives faster than most people expect. And timestamps chain: an investigator, insurer or journalist comparing the EXIF time against a phone bill, a toll record or the unique image numbers cameras write can confirm that the photo, the person and the event line up. Remove the GPS but keep a precise timestamp and you have kept half the story.
Legal and insurance contexts raise the bar again. A claim photo whose embedded time disagrees with the claimed time by hours gets questioned. Whether the timestamp was written by the original camera or edited later can be checked, and the forensic exiftool commands covered earlier show the edit trail, not just the headline time.
How to check what a photo really says
- exiftool -a -G1 -time:all file.jpg prints every time field the file carries, grouped, including the timezone offsets and the GPS UTC stamp if present.
- Look for gaps: a DateTimeOriginal with no OffsetTimeOriginal is a timestamp with unknown timezone. A Modify Date far after the original date says the file was touched later.
- Compare GPSDateTime against DateTimeOriginal when both exist. Their difference is the camera's local offset, and it should match where the photo was actually taken. A mismatch means the clock or the location field is lying.
How to fix or strip it
Correcting a known offset, all fields at once: exiftool "-AllDates-=4:00:00" -if "$DateTimeOriginal" file.jpg shifts the three date fields back four hours. Add -P to preserve the rest of the file structure.
Setting a timezone on files that lack one: exiftool "-OffsetTimeOriginal=+04:00" writes the offset explicitly so future tools stop guessing.
Stripping entirely: exiftool -AllDates= -OffsetTime*= removes the capture times. Know what else you keep: a photo can still carry GPS, serials and the story told by its name and folder, and the metadata outside EXIF survives this deletion untouched.
One caution before bulk edits: rewriting timestamps updates the Modify Date and can drop original fields some tools wanted. Always work on a copy, and verify with the time:all print afterwards.
Practical rules
Set the camera clock properly at every trip start, and let phones do it automatically, they are the most trustworthy clocks in your bag. When exporting or archiving, keep DateTimeOriginal untouched and put the timezone in the filename or a sidecar note if it matters. When sharing publicly, treat the timestamp like GPS: strip it unless the time itself is the point. The clock in a photo is evidence, and evidence belongs to you, not to whoever downloads the file.