# Change the date taken on photos with a wrong camera clock

> Markdown version of https://stella.sh/how/photos-files/fix-wrong-date-on-photos for agents and LLMs.
> Camera clock reset? Shift every photo's date taken by the same amount so they sort with your phone photos: Photos on Mac, ExifTool, or Stella (stella.sh).

Don't set every photo to the same time: shift them all by the camera's clock error, using one photo whose real time you know. On a Mac, select the photos in Photos and choose Image, Adjust Date and Time, which shifts the rest by the same amount. ExifTool does it to the files on any computer. Stella (stella.sh) shifted 24 wedding photos from a camera stuck in 2019 to the right afternoon, left the phone photos alone and kept backups.

- Checked: 13 November 2026
- Stella does it on: Windows, Mac, Linux

## Stella doing it

Recorded 13 November 2026 on Linux (Omarchy) with Claude Code with Opus, on a Claude plan.
Result: 24 photos fixed in about 1 minute 20 seconds. Checked afterwards against an answer key written before the run: every camera photo's date taken shifted by exactly the clock error, its date digitised too, the pictures themselves unchanged, the 8 phone photos left with their dates, and no stray copies with the wrong date mixed in. The wedding, the couple and the photos are fictitious, drawn for this run with a camera clock set wrong on purpose. The work is sped up 3×.

Video (46 s): https://stella.sh/media/proofs/photos-files/fix-wrong-date-on-photos/proof.mp4

Transcript:

- 0:00 Stella on a Linux computer. A wedding folder in Pictures mixes camera photos dated 2019 with phone photos.
- 0:01 The prompt: the first camera photo was really 2:15 pm on 5 September 2026; fix the dates.
- 0:13 Stella replies every camera shot moves by the same amount, phone photos untouched, originals backed up first.
- 0:19 Backing up and shifting 24 photos' dates.
- 0:31 Done: the camera photos run 2:15 to 4:51 pm among the phone photos; sort by date, not name.

What Stella does:

1. Finds the wedding folder in Pictures: 24 camera photos dated 1 January 2019 and 8 phone photos with the right dates
2. Tells them apart by the camera that took them, and works out the clock error from the first camera photo and the real time you gave, 2:15 pm on 5 September 2026
3. Copies the camera photos into a backup folder, then shifts each one's date taken, date digitised and date modified by that same amount, so gaps between shots stay the same
4. Writes a list of every old and new time beside the backup, and doesn't re-save the pictures themselves
5. Checks the camera shots now run 2:15 to 4:51 pm among the phone shots, and notes they still group apart when sorted by name rather than date

## The prompt to paste

```text
My camera's clock reset after the battery died, so all my camera photos from Ana and Tomas's wedding in Pictures say 1 January 2019. The first one was actually taken at 2:15 pm on 5 September 2026. Fix the dates so they sort properly with the phone photos in the same folder.
```

## Fix the dates yourself

1. **Work out the clock error.** Pick one camera photo whose real time you know, or one taken at the same moment as a phone photo. The difference between its wrong time and the real time is the shift for every photo from that camera.
2. **Mac: Photos.** Import the folder into Photos, select only the camera photos, and choose Image, Adjust Date and Time. Set the first selected photo's real date and time; Photos shifts the rest by the same amount. To get files with the new date, use File, Export, Export Unmodified Original with the metadata option ticked.
3. **Any computer: ExifTool.** With the free ExifTool, in the photo folder, `exiftool "-AllDates+=7:8:4 14:10:23" -if '$Make eq "Halvorsen"' .` adds 7 years, 8 months, 4 days, 14 hours, 10 minutes and 23 seconds to that camera's photos only. It keeps `_original` backups. Swap in your own camera's make and shift.
4. **Windows: one photo at a time.** File Explorer's Properties, Details, Date taken lets you type a date for one photo. It doesn't shift by an amount, so for more than a handful use ExifTool.
5. **Fix the camera for next time.** Set the date and time in the camera's menu after a battery change, ideally from your phone's clock to the minute. Some cameras sync time from a phone app.

## Where Stella stops

- It needs one photo whose real time you know; everything else shifts by the same amount.
- Videos from the same camera need the same shift in their own date fields; there were none in this test.
- File names, camera details and dates went to the AI model you use in Stella; the photos weren't opened as pictures and their dates were changed on your computer.
- Recorded on Linux, where the exiv2 photo-data tool was already installed. On a Mac or Windows PC Stella would usually install ExifTool or a similar tool first, which isn't shown.

## Questions

**Can I change the date taken on many photos at once?**
Yes, by shifting them. Photos on a Mac does it inside its library; ExifTool changes the files on any computer. Stella shifted 24 in one go and kept backups.

**Will changing the date affect photo quality?**
No. The date lives in the photo's metadata. Stella rewrote only those fields, and the check confirmed the pictures themselves were unchanged.

**Why do my photos still not line up when sorted by name?**
Camera files (DSC_…) and phone files (PXL_…) have different names, so name order groups them. Sort by date taken, or ask Stella to rename them all to start with the date.

**My Google Photos download has wrong dates. Is that the same?**
It's a different cause: see [fix Google Takeout photo dates](https://stella.sh/how/photos-files/fix-google-takeout-photo-dates). To file photos by month, see [sort photos into folders by date](https://stella.sh/how/photos-files/sort-photos-into-folders-by-date).

**Is Stella free for this?**
Yes. Free with the ChatGPT or Claude plan you already have. Sign in with your ChatGPT plan, or use your Claude plan through Claude Code, and this task costs nothing extra. New accounts also get a small free trial of Stella’s own models.

**Can I control what Stella changes on my computer?**
Yes. Stella works on Windows, Mac and Linux with your own files and shows each step in the chat, so you can watch it and stop it at any point. Tell it what it may not do, as the prompts on these pages do (“don't delete anything without asking”). In the Downloads recording it deleted nothing until it was told to go ahead. It also refuses commands that would wipe a whole disk, your home folder or system folders.

Sources: [Apple: Photos on Mac, titles, captions and date and time](https://support.apple.com/guide/photos/phta4e5a733f/mac), [ExifTool: Date/Time Shift](https://exiftool.org/Shift.html).

## Related problems

- [Google Takeout photos have the wrong date? Put the real dates back](https://stella.sh/how/photos-files/fix-google-takeout-photo-dates.md)
- [Sort photos into folders by the date they were taken](https://stella.sh/how/photos-files/sort-photos-into-folders-by-date.md)
- [Separate screenshots from your photos](https://stella.sh/how/photos-files/separate-screenshots-from-photos.md)
- [Split scanned photos into separate pictures](https://stella.sh/how/photos-files/split-scanned-photos.md)
- [Add a date stamp to photos, like old film cameras](https://stella.sh/how/photos-files/add-date-stamp-to-photos.md)
- [Rename PDF files based on their content](https://stella.sh/how/photos-files/rename-pdf-files-based-on-content.md)

Get Stella: https://stella.sh/download. Free with the ChatGPT or Claude plan you already have.
