Why do my Day One export photos all show today’s date?
You exported your Day One journal to keep it, or to move somewhere else. You opened the ZIP and found a photos folder full of files with names nobody can read, and when you added them to Google Photos or Apple Photos they all landed on today. The dates are not lost. They are in the same export, in the journal’s JSON file.
Why the photos show today’s date
A photo app decides where a picture goes on your timeline by reading a field inside the file: the EXIF tag DateTimeOriginal, shown as “Date Taken”. When a file has none, the app falls back to the file’s own date, which is the day the export was made or unzipped.
- The file names are hashes. Day One names each attachment after the MD5 hash of its content:
31c871f18f68d2fde4196ccba1f8ece1.jpeg. Nothing in the name says when or where. - Not every file has a date inside. In the real export we tested, the two JPEGs had no
DateTimeOriginalat all, while the video and the audio recording did carry a creation date. Photos taken with a camera often keep theirs; screenshots, saved images and edited photos often do not. - The entry is somewhere else. The day you wrote about the photo, the time zone and the place are in the journal’s
.jsonfile, which no photo app reads.
Where the date and the place are
Journal.json one per journal: every entry, with its attachments
photos/ one file per photo, named md5.ext
31c871f18f68d2fde4196ccba1f8ece1.jpeg
videos/
d500d6789ff2c211af3f507b17be8e66.mp4
audios/
f35f41739499e70c6b2714e3a7d82d8c.m4a
pdfs/Each entry in the JSON has its date, its time zone, its location when it has one, and the list of what is attached to it. This is a real entry, shortened:
{
"creationDate": "2024-04-19T21:55:53Z",
"timeZone": "Europe/London",
"location": { "placeName": "London Eye", "localityName": "London", "country": "United Kingdom",
"latitude": 51.503360748291016, "longitude": -0.11951349675655365 },
"photos": [
{ "md5": "6b73e9bd86a91d3a7ead09268b0fb266", "type": "jpeg", "orderInEntry": 1, "date": "2024-03-24T18:30:30Z" }
],
"videos": [ { "md5": "842e6f3bf38e93981004c637e8b03967", "type": "mp4" } ]
}So the chain is: file name in photos/ → the same md5 in an entry’s photos list → that entry’s creationDate, timeZone and location. Videos, audio recordings and PDFs work the same way, through the lists videos, audios and pdfAttachments.
Which date, and which time zone
creationDate is in UTC (the Z at the end). timeZone is the name of the zone the entry was written in. The entry above was created at 21:55 UTC, which was 10:55 PM in London, where summer time was in force. The local time is the one you want on the photo, or an evening entry can land on the next day. JournalRedate writes the local time as DateTimeOriginal and the offset (+01:00) as OffsetTimeOriginal.
Each attachment also has a date of its own. For photos it is often the day the picture was taken, which can be weeks before the entry: in the sample, a photo dated March 24 is attached to an entry of April 19. Which one you want depends on what you are rebuilding. “The day I wrote about it” is the entry date, and that is the default in JournalRedate; “the day it was taken” is the attachment date, which you can choose instead.
What about the place?
When an entry has a location, Day One saves real coordinates with it: latitude and longitude, plus the place name, the city and the country. JournalRedate writes the coordinates into each JPEG as EXIF GPS, so the photo shows on the map of your photo app, and puts the place name in the file name. An entry without a location gets no GPS and no place: nothing is guessed. GPS is not written into videos or audio files.
Three things real exports do
- The same photo in two entries. The file exists once, and two entries list its hash. JournalRedate writes it once, under the oldest entry, and notes the other entry in the manifest.
- An attachment with no file. An entry can list a video whose file is not in the ZIP, for example when the media was never downloaded to the device that made the export. It gets a row marked “missing in export”.
- A camera date already inside. That date is kept unless you ask to overwrite it. The file is still renamed with the entry date.
How to export your journal as JSON
- On a Mac, open Day One and choose File > Export > JSON. On iPhone or iPad, open Settings > Import/Export and choose the JSON export.
- Pick the journals you want. Each one becomes a
.jsonfile in the same ZIP. - Save the ZIP. If it will be bigger than 4 GB, export one journal at a time.
Day One moves these menus from time to time. If yours look different, search Day One’s help pages for “export JSON”. Make sure the media has finished downloading on the device you export from, or the files will be missing from the ZIP.
Put the dates back in your browser
Add the ZIP of your Day One JSON export. JournalRedate matches each file to its entry, renames it with the date and place, writes the date and GPS into the file and sorts everything into folders by year and month. Nothing is uploaded. Free for 25 files, $9 once for all.
Redate my Day One mediaOther ways to do it
- By hand. For a handful of photos: search the journal JSON for the hash in the file name, read the
creationDateof the entry around it, and set the date in your photo app. - ExifTool and a script. ExifTool can write any date and GPS position into a photo or video from the command line, for example
exiftool "-DateTimeOriginal=2024:04:19 22:55:53" "-OffsetTimeOriginal=+01:00" -GPSLatitude=51.50336 -GPSLatitudeRef=N -GPSLongitude=0.11951 -GPSLongitudeRef=W photo.jpeg. It does not read the Day One export: you write the script, usually in Python, that walks the JSON, converts the time zone and calls it for every file. It is free and flexible, it also handles HEIC and PNG, and it is the route to take if you want something this tool does not do. - Markdown converters. Tools such as JournalFold and the Day One importers for Obsidian on GitHub turn the text of your entries into Markdown notes. They are the right tool for moving your writing. They are not made to write dates into the media files.
FAQ
Is the date the moment the photo was taken?
By default it is the date of the journal entry the photo is attached to. If the photo already has a camera date inside, that one is kept. You can also choose the attachment’s own date from the export.
Will my photos show on the map?
JPEGs from entries that have a location, yes: the entry’s coordinates are written as EXIF GPS. Photos from entries without a location, and videos, are not placed.
What happens to HEIC, PNG, GIF and PDF files?
They are renamed with the entry date and place and get the date as their file date in the ZIP. Nothing is written inside them.
Does it convert my journal?
No. It only deals with the media files. The text of your entries stays in the JSON.
Sources
- ExifTool by Phil Harvey
- MarcDonald/obsidian-day-one-importer, whose test data includes the real Day One JSON export (6 entries, 2 JPEGs, 1 MP4, 1 M4A) used to test this tool