Every photograph came back. Every date said today
Why a Backup Restores Your Photos but Not Their Dates
The backup worked. That is the strange part. Every photograph is there, every folder is where it was, nothing is corrupt — and the library has lost twenty years of chronology, because the computer now believes every picture in it was made on the afternoon you restored it. This is not a faulty backup, and it is not bad luck. It is the predictable result of a rule written into the file formats and the copying tools themselves, and the rule is specific enough that you can say in advance which of your photographs will come back dated correctly and which will not. We measured seven ways of moving the same photograph to find out exactly where the date goes.
The restore that worked perfectly
The sequence is always the same. Something goes wrong — a failed drive, a new computer, a ransomware scare, a reinstall — and the backup does exactly what it was bought to do. The folders come back. The photographs open. Nobody has lost a single file, and for a day or two it feels like a near miss that ended well.
Then somebody sorts a folder by date, or opens the photo app, and the library has gone flat. Twenty-two years of pictures all claim to be from last Tuesday. The holiday in 2009 and the baby photographs from 2014 and last week’s pictures of the dog are interleaved in one undifferentiated block, and the only thing they agree on is the day the restore ran.
So this article does three things. It separates the clocks, because the confusion starts with treating “the date” as one item. It reports what seven different ways of moving a photograph actually did to those clocks on a real machine, with the method, so the numbers are checkable rather than received wisdom. And it ends with the part that decides whether any of this matters to you: which of your photographs carry their date inside themselves, and which ones never did.
The two clocks on every photo file
Open the properties of any photograph on a Windows PC and the filing system will tell you several dates. Two of them do the work, and they mean genuinely different things:
Modified is when the contents of this file last changed. For a photograph that has never been edited, that is normally the moment the camera finished writing it — which is why it so often is the real date, even though nothing guarantees it.
Created is when this file came into existence at this location. That is the sentence people misread. It does not mean when the photograph was taken. It means when this particular copy, on this particular drive, began. A file copied to a new disk this morning was created this morning, truthfully, however old the picture inside it is.
Those definitions matter because a backup is a copying operation, and copying has to decide what to do with each clock. There is no law of physics here and no single right answer; each tool makes a choice, and the choices differ. Modified is the one almost everything carries, because carrying it is what makes “has this file changed since last time?” answerable — which every backup program on earth needs. Created is the one that gets dropped, because almost nothing depends on it.
One more thing to know before the numbers. Which of these clocks your computer shows you is a separate decision from which ones it stores. Windows will show a photograph’s internal capture date in a “Date taken” column when there is one to show, and fall back to the file clocks when there is not. So two photographs in the same restored folder can behave completely differently, and the reason is invisible until you know to look for it.
Seven routes, measured
Rather than repeat the usual advice, we set up a measurement. Three stand-in photo files were given deliberately old clocks — both modified and created set to 14 July 2008, 11:32:08 — and then moved to a new folder seven different ways. After each one we read back both clocks and took a SHA-256 hash of the file’s contents.
This ran on Windows 10 Enterprise on 24 October 2026, on an NTFS drive, using only tools that are already on the machine: Explorer-equivalent copying, the built-in zip, the tar that ships in Windows 10 and 11, and robocopy. The run took a few seconds, so where a clock was reset it was reset to 24 October 2026, 14:48. That is the giveaway value: wherever you see it below, that clock was thrown away and replaced with “now”.
The results split into three groups, and the grouping is the whole point.
Group one — modified survives, created is reset. A plain copy of the folder, a ZIP compressed and extracted again, and a tar archive created and extracted again all behaved identically: modified came back as 2008-07-14 11:32:08, and created came back as 2026-10-24 14:48. Three completely different mechanisms, one shared decision. This is the group that most backups, most archives and most file transfers fall into, and it is the one that produces the symptom this article is about.
Group two — both clocks survive. robocopy, the copying tool that has shipped with Windows for years, returned 2008-07-14 11:32:08 for both. Notably, it did that with no flags at all, because preserving timestamps is its default. Microsoft’s own reference page states it plainly:
Spelling the flag out explicitly as /COPY:DAT produced exactly the same result, which is the useful finding: the better behavior is already the default, and the reason people do not get it is that they are not using this tool. The command-line copier most people have never opened is the one that does the careful thing.
Group three — both clocks lost. The last route was not a copy in the ordinary sense. We read the original file’s bytes and wrote them out as a new file — which is what a download does, and an export, and a “save as”, and a cloud client fetching your library back down to a rebuilt computer. Modified and created both came back as 2026-10-24 14:48. Nothing was preserved, because from the filing system’s point of view nothing was copied: a brand-new file was written, and brand-new files are new.
Why a zip rounds your photograph down
The ZIP result deserves its own section, because it is stranger than “created gets reset” and it is written into the format itself rather than into anybody’s software.
We gave a file an awkward timestamp on purpose — 11:32:09.457, an odd second with milliseconds on it — zipped it with the zip built into Windows, and extracted it again. It came back as:
Not rounded to the nearest second. Rounded down to the nearest even second. The same file put through tar came back as 11:32:09.000: the whole second kept, the milliseconds gone.
The reason is in the ZIP specification, which has said the same thing since the 1980s. The format stores the time in a pair of two-byte fields, and on how they are encoded it says:
Two bytes is not enough room for a precise time, so the format spends its budget on a two-second grid starting in 1980. Nothing can be stored on an odd second, so an odd second becomes the even one below it. That is not a bug in Windows’ zip tool; it is arithmetic, and it has been documented all along.
The specification does provide a way out. There is an optional extra field, identified as 0x000a, which carries eight-byte values for modification, access and creation time — everything that went missing. It is optional, and we checked whether the archive we had just made used it. It did not: the file entry contained zero bytes of extra fields, no extra field identifiers at all. The space for the accurate times was there and empty.
Which explains both halves of the ZIP result at once. The created date vanished because the only field that could have held it was never written, and the modified time lost 1.457 seconds because the field that was written cannot express anything finer. Other archiving programs do write that extra field, so this is a property of the tool as much as the format — but the tool in question is the one built into Windows, which is the one almost everybody uses.
Does a second and a half matter? On its own, no. It matters when it is the tie-breaker. Photographs taken in a burst are seconds apart, and if the clock is all a program has to sort by — which is exactly the situation for files with no internal date — then flattening several of them onto the same even second is how a sequence loses its order. That failure is covered at length in why your photos are not in the order you took them.
The date that travels inside the picture
Now the reassuring half, and it was the most consistent result of the whole exercise. Across all seven routes — copy, zip, tar, both robocopy runs, and the rewrite that destroyed both clocks — the file’s SHA-256 hash was identical every time. Not similar: the same.
That matters more than it sounds. A photograph from a camera or a phone has its capture date recorded inside the file, in a block of information the camera writes alongside the image. Identical contents means that block is necessarily untouched. So the date the camera recorded is not at risk from any of this. It cannot be, without the bytes changing.
So for an ordinary holiday photograph taken on a phone, a flattened restore is an inconvenience rather than a loss. The real date is in the file, your photo software can read it, and the chronology can be put back. Many programs will simply show the internal date and ignore the file clocks entirely, which is why some people restore a library and never notice a problem.
And that is precisely what makes the rest of it dangerous, because it is unevenly distributed. The pictures in any family library that have no internal capture date are:
- Screenshots — made by software, not a camera, and usually carrying nothing but a filename.
- Scans of older prints, where any date present describes the scan rather than the photograph. We went through that in why a scanned photo has no date.
- Pictures received in messages or saved from the web, which have usually had their internal information stripped in transit.
- Videos, which are considerably less consistent about this than photographs — see why videos lose their dates more often than photos.
- Anything from the early digital era, before writing a capture date became universal.
For every one of those, the file clock was not a rough guide to the date. It was the only record that ever existed. And it is exactly those files that a group-one restore half-damages and a group-three download erases.
The seven routes, side by side
The same photograph, stamped 14 July 2008 11:32:08 on both clocks, moved seven ways. “2026-10-24 14:48” is the moment the test ran, so it means the clock was discarded and replaced with the time of day.
| How the file was moved | Modified came back as | Created came back as | Contents |
|---|---|---|---|
| The originals, untouched | 2008-07-14 11:32:08 | 2008-07-14 11:32:08 | identical |
| Plain copy (dragging a folder in Explorer) | 2008-07-14 11:32:08 | 2026-10-24 14:48 | identical |
| Zipped, then unzipped (built-in Windows zip) | 2008-07-14 11:32:08 | 2026-10-24 14:48 | identical |
| tar archive, then extracted | 2008-07-14 11:32:08 | 2026-10-24 14:48 | identical |
| robocopy, no flags | 2008-07-14 11:32:08 | 2008-07-14 11:32:08 | identical |
| robocopy /COPY:DAT | 2008-07-14 11:32:08 | 2008-07-14 11:32:08 | identical |
| Written out as a new file (a download, an export, a save-a-copy) | 2026-10-24 14:48 | 2026-10-24 14:48 | identical |
Read the last column first. The photograph itself was never harmed by anything. Then read the two middle columns: the only route that kept both clocks is the one nobody uses, and the only route that lost both is the one most people’s recovery plan depends on.
What to do before you restore
Almost all of this is avoidable, and none of it is avoidable afterwards. The useful work happens before the restore, which is an awkward thing to say to somebody reading this the day after one.
Decide which clock you are trusting, once. For any photograph with an internal capture date, trust that and nothing else; the file clocks are commentary. For everything without one — the scans, screenshots, messages and video — the file clock is the record, so that is the material whose clocks you need to protect.
Prefer a copy to an archive, and a careful copier to a plain one. If you are moving a library between drives yourself, robocopy preserved both clocks here by default. A zip is the worst of the realistic options, since it discards creation times and rounds the one it keeps.
Treat “I will download it again” as a plan that loses dates. It is a perfectly good plan for not losing photographs, which is the more important job. Just do not also expect it to return your chronology; a re-download is group three.
Write the dates down inside the files while you still can. This is the only genuinely durable fix. A date living in a filing-system clock is one careless copy from gone, whereas a date written into the photograph survived every single route we tested. Moving a known-good file date into the file itself converts a fragile record into a permanent one, and it is the one step that makes the next restore uneventful.
Keep a copy you have not restored from. Flattened dates are recoverable while some other copy still has the original clocks on it. If the only remaining version is the restored one, the evidence has gone with it — which is the same argument as cloud sync is not a backup, arriving from a different direction.
Five things widely repeated that are wrong
- “The backup corrupted my photos’ dates.” In seven routes, including the two destructive ones, the file contents were byte-for-byte identical every time. Nothing written inside the photograph was altered by copying it. What changed was the filing system’s record about the file, which is stored separately and which most tools are not carrying for you.
- “Date created is when the photo was taken.” It is when that copy of the file started existing in that place. Our plain copy produced a file created in 2026 holding a photograph from 2008, and that reading was accurate — the copy really was made in 2026. Treating created as the capture date is the single most common way a library acquires wrong years.
- “Zipping a folder preserves everything.” The ZIP specification stores times in “standard MS-DOS format” with “2 second precision”, and the creation time only fits in an optional extra field. The archive Windows built for us contained zero bytes of extra fields, so the creation time was not stored at all and 11:32:09.457 came back as 11:32:08.
- “It is all in the cloud, so a rebuild costs me nothing.” It costs you both file clocks. Downloading writes new files, and new files get today’s dates on both counts. For camera photographs that is survivable; for the screenshots, scans and messages in the same library it is the loss of the only date they had.
- “You need special software to copy files properly.” You need
robocopy, which is already installed, and you need no flags, because Microsoft documents the default as “DAT (data, attributes, and time stamps)”. It kept both clocks here without being asked.
Rebuilding what the restore flattened
A flattened library looks unfixable because the damage is everywhere at once, and it is usually a good deal less bad than it looks. The work is to sort the files into the ones that still know their own date and the ones that do not, and then to treat those two groups completely differently.
For everything with an internal capture date, there is nothing to reconstruct. The date is in the file and survived; it only needs to be read and the file clocks brought back in line with it, which is a bulk job rather than a judgement call.
For the rest, the date has to be inferred from whatever evidence is left, and there is normally more than people expect. The filename often contains a date, because phones and scanners and screenshot tools all write one. A file’s neighbors on the original drive can place it within a run of pictures that do have dates. Any copy of the library that was not restored still has the original clocks on it. None of these is proof on its own, and together they are usually enough to put a photograph in the right year — which is what makes a library navigable again. That process is what fixing wrong photo dates walks through step by step.
Two cautions, both learned from people who moved faster than this. Do not sort anything into year folders until the dates are settled — PDR never reads a folder to decide when a photograph was taken, so filing early buys you no accuracy, and every date you correct afterwards becomes a file to move as well. And if your photographs came back from a service’s export rather than from a copy of your own files, read what photo exports actually give you first, since an export may have put dates in a separate file beside each photograph rather than inside it — a file that is trivially separated from the picture it describes.
And then the thing worth doing once, so that this article never applies to you twice: write the correct dates into the photographs. A date inside the file was the one record that survived all seven routes we tested, including the two that destroyed everything else. Nothing else you can do makes the next restore uneventful.
Doing it in Photo Date Rescue: Backing up covers what a restore brings back, and in what state.
Where this comes from
- Microsoft: File Times, on what Windows keeps for every file — the three times Windows keeps for a file, none of which is the shutter.
- Microsoft: Back up and restore with Windows Backup — what the backup in Windows restores, and in what state.
Restored is not the same as recovered
The files come back and the order does not, so a restore can leave twenty years of photographs all dated the same day. PDR puts the real dates back from what is inside each file.
Free Test Drive Buy NowFrequently asked questions
Why are all my photos dated today after restoring a backup?
Because a restore writes files onto a drive, and a filing system records when a file came into existence in a place. That is what the created date means: not when the photograph was taken, but when that copy began. We measured seven ways of moving the same photograph and three common ones, a plain copy, a zip round trip and a tar round trip, all reset the created date to the moment of the copy while keeping the modified date. A download or an export is worse, because it writes an entirely new file and so resets both clocks. None of this alters the photograph itself. In every route we tested the file contents were byte for byte identical, so the capture date written inside the picture by the camera was untouched.
Does copying a photo change the date the camera recorded?
No, and this is the part worth being certain about. The capture date is part of the photograph's own contents, written into the file by the camera or phone, rather than a property the filing system keeps about the file. We hashed the file after every one of seven different transfers, including a zip, a tar archive and a rewrite that destroyed both file clocks, and the SHA-256 was identical every time. Identical contents means the capture date cannot have changed. So when a capture date is wrong, either it was recorded wrong at the time, usually because the camera clock was never set, or the photograph never had one. Copying is not the cause.
Why does zipping photos change their time by a second or two?
Because the ZIP format cannot express an exact time. The specification states that the date and time are encoded in standard MS-DOS format, and that MS-DOS uses year values relative to 1980 and two second precision. The time lives in a two byte field, which only has room for a grid of even seconds, so anything landing on an odd second is rounded down to the even one below it. We zipped a file stamped 11:32:09.457 with the zip built into Windows and it returned as 11:32:08, which is 1.457 seconds earlier. The format does define an optional extra field that can carry precise modification, access and creation times, but it is optional, and the archive we made contained zero bytes of extra fields. On its own a second or two is harmless. It matters when the file clock is the only thing available to sort by, because photographs taken seconds apart can be flattened onto the same timestamp and lose their order.
Which Windows tool copies photos without changing their dates?
Robocopy, which has shipped with Windows for years and needs no extra flags for this. Microsoft's reference documentation states that the default value for the /COPY option is DAT, meaning data, attributes and time stamps. In our measurement robocopy returned both the modified and the created date exactly as they were on the originals, and specifying /COPY:DAT explicitly made no difference because it is already the default. By comparison, dragging the same folder in Explorer kept the modified date and reset the created date to the moment of the copy. If you are moving a photo library between drives yourself and you care about the file clocks, this is the difference between keeping them and losing half of them.
Will downloading my photos from the cloud again give me my dates back?
It will give you the photographs back, which is the more important thing, but it will not give you the file dates. A download writes a brand new file, so from the filing system's point of view nothing was copied and both clocks start now. In our test, writing a file out from the original's bytes produced a file whose modified and created dates were both the moment of the test, with the contents still identical. For photographs taken on a camera or phone this is survivable, because the real date is inside the file and can be read back. For screenshots, scans, pictures received in messages and older video, the file clock was often the only date that ever existed, and a re-download is where it goes.
What is the difference between date created and date modified on a photo?
Modified is when the contents of the file last changed, which for a photograph that has never been edited is usually when the camera finished writing it. That is why it is so often the real date, although nothing guarantees it. Created is when that copy of the file came into existence at that location, so it is accurate but says nothing about the photograph: a file copied onto a new drive this morning was genuinely created this morning, however old the picture is. The practical consequence is that modified is the more trustworthy of the two and is also the one that most tools carry during a copy, while created is the one that gets reset. Neither is as reliable as the capture date written inside the photograph.
Which photos actually lose their dates in a restore?
The ones with no capture date inside them, which is a surprisingly large slice of a family library. Screenshots are made by software rather than a camera and usually carry nothing. Scans record the date of the scan rather than of the photograph. Pictures received in messages or saved from the web have generally had their internal information stripped in transit. Video is markedly less consistent about this than stills. And anything from the early digital era predates the practice being universal. For all of those the file clock was not an approximation of the date, it was the only record, so a restore that resets it is a real loss rather than a cosmetic one. Photographs taken by a camera or phone carry their date internally and come back intact.
Can I get the original dates back after a restore has flattened them?
Often yes, and it is much easier while more than one copy of the library still exists. For any photograph with an internal capture date there is nothing to reconstruct, since that date survived the restore and only needs reading back. For the rest, the date has to be inferred from the evidence around it, and there is usually more than people expect: filenames written by phones, scanners and screenshot tools frequently contain a date, neighbouring files that do have dates can place an undated one within a run, and any copy of the library that was not restored still carries the original clocks. The important restraint is not to file anything into folders by year until the dates are settled, because sorting early buys no accuracy and turns every later correction into a file to move as well as a date to fix.
How do I stop this happening the next time I restore a backup?
Write the dates into the photographs rather than relying on the filing system to carry them. A date held in a file clock is one careless copy away from gone, as three of our seven routes demonstrated, whereas a date written inside the picture survived every route including the two that destroyed both clocks. Beyond that: prefer a copy to an archive when moving a library yourself, since a zip discards creation times and rounds the one it keeps; use robocopy rather than dragging folders, because it preserves both clocks by default; treat downloading from a cloud service as a plan that returns photographs but not dates; and keep at least one copy you have not restored from, because that is the copy the original clocks survive on.