A cardboard parcel sealed with red and white FRAGILE tape, photographed close up on a dark wooden table.

Everything came out of the box. Not everything came out the same

Formats · · · 12 min read

What Zipping a Folder Does to Your Photo Dates

A zip file is the normal way photographs travel. You zip a folder to email it, you zip it to carry it to a new computer, and every large export from a photo service arrives as one. The pictures always come out the other end. The dates do not always come out the same, and the reason is not a bug in anything — it is a decision made in 1989 about how to store a date in four bytes, which is still being honored by every tool on your machine.

Already recognize your own library? You can try it on your photographs now.

Free Test Drive Buy Now

What a zip actually stores about a photograph

A zip file is a container. For every file inside it, the archive keeps the compressed data and a small header describing the file — its name, its size, a checksum, and its date and time. The format is public and has been for decades: PKWARE publishes it as the .ZIP File Format Specification, and the version in force at the time of writing is 6.3.10, revised on 1 November 2022.

Look up what that header holds for a date and you find two entries, each of them two bytes long: “last mod file time” and “last mod file date”. That is the whole of it. One moment in time, four bytes, per file.

The specification is equally plain about the format those four bytes use. “The date and time are encoded in standard MS-DOS format,” it says, and then, in case anyone assumed that was a detail: “MS-DOS time format is different from more commonly used computer time formats such as UTC. For example, MS-DOS uses year values relative to 1980 and 2 second precision.”

Two second precision. Microsoft’s own documentation for the function that reads those bytes lays out the bits and labels the seconds field, without comment, as “Second divided by 2”. There is no room in the field for an odd number of seconds, so there is no odd number of seconds to be had.

The two-second rule, measured

It is one thing to read that in a specification and another to watch it happen, so here it is happening. Three files were made on a Windows PC and given deliberately awkward timestamps — the same minute on 4 July 2009, one second apart:

File Before zipping After zipping and unpacking
IMG_0001.jpg 14:23:01 14:23:00
IMG_0002.jpg 14:23:02 14:23:02
IMG_0003.jpg 14:23:03 14:23:02

The odd seconds are gone, exactly as the specification says they must be. That is not damage and nothing was lost that anybody would normally miss — but look at what happened to the last two files. They went in a second apart and came out identical.

That matters more than the one second does, because a burst of photographs is the commonest thing on anybody’s phone. Hold the shutter down and you get four or five frames inside two seconds. Send those through a zip and they arrive sharing a timestamp, and whatever you open them in no longer has anything to put them in order by. It will fall back on the filename, which is usually fine and occasionally is not.

The same archive, an hour apart

This is the part worth knowing, and it is not a quirk of any one program. Windows gives you two ways to make a zip without installing anything: the Send to → Compressed (zipped) folder you get by right-clicking a folder, which is what almost everybody uses, and a command called Compress-Archive that ships alongside it. They produce zip files that are both perfectly valid, and they do not agree with each other.

The same three files were zipped twice, once each way, and then unpacked twice, once each way. Four combinations. The clock on those files said 14:23 on a July afternoon:

Zipped with Unpacked with Time that came out
Right-click → Compressed folder Right-click → Extract All 14:23 — correct
Compress-Archive Expand-Archive 14:23 — correct
Right-click → Compressed folder Expand-Archive 13:23 — an hour early
Compress-Archive Right-click → Extract All 15:23 — an hour late

Each tool is self-consistent. Zip and unzip with the same one and the time is right. Cross them over and the photograph moves an hour, in one direction or the other.

The cause is in the four bytes. An MS-DOS timestamp has no time zone attached to it, so a program writing one has to decide what the number means and every program has to guess what the last program decided. Reading the archives directly shows the disagreement plainly: one tool had written 14:23 into the file, the local time; the other had written 13:23, the same moment expressed in UTC. Neither is wrong. The format has nowhere to say which it chose.

The hour only appears for photographs taken in summer, because the gap is exactly the daylight saving offset. A picture from January comes out of all four combinations with the same time on it. A picture from July does not — which is a strange thing to discover about half your library.

The date that is not in there at all

Every file on a Windows PC carries more than one date. There is the modified date, which is the one the archive stores, and there is the created date, which is the one Windows sets when the file arrives. A zip has nowhere to put the second of those. The header has one timestamp and that is the modified one.

So the created date has to be invented at the moment of unpacking, and the two tools take opposite views of that as well. Right-click and Extract All, and the created date is set to match the stored one — the photograph arrives looking as old as it is. Use Expand-Archive, and the created date becomes the moment you unpacked it. In the test for this article that meant three photographs from 2009 arriving stamped 24 November 2026, 08:25 — all three identical, to the second, because that is when the extraction happened.

Whether any of that reaches you depends entirely on what you open the folder in. Some views sort by date created and some by date modified, and most people have never had a reason to notice which one they are looking at. The fastest way to tell is to turn both columns on in a folder window and see whether they agree.

What a zip does not touch

Now the reassuring half, because the above is easy to over-read.

Zipping is lossless. The photographs are not re-encoded, not recompressed, not degraded. The files that came out of the test archives were compared against the originals and matched to the byte — identical checksums, identical sizes. Nothing about the image changed, and nothing about the block of information the camera wrote inside it changed either.

That block is the important one. The date the shutter actually fired is written inside the photograph, in the Exif data, by the camera that took it. A zip file has no opinion about the contents of the files it carries, so that date goes in and comes out exactly as it was, down to the second, with no rounding and no hour. It is the one date in this whole article that no part of the process can move.

If a photograph has its own date inside it, the file’s dates are a convenience and the Exif date is the record. That is the order of trust worth having, and it is the opposite of the order most software presents them in.

Where this shows up in real life

Nobody zips a folder for fun, which is why this tends to be discovered after the fact rather than during. The four common routes:

An export from a photo service. Ask any of the big services for a copy of your library and it arrives as a set of zip files, often very large ones. Every photograph in them comes through this same four-byte bottleneck on the way to your drive.

Sending photographs to someone. Zipping is the normal way to attach a folder to an email, and the person at the other end unpacks it with whatever their machine offers. If their tool and yours disagree, the hour shifts on arrival and neither of you has any reason to suspect it.

Moving to a new computer. Zipping a photo folder to carry it over is sensible and common, and the dates that come out the other side are the dates the new machine will sort by for years.

Backing up by hand. A folder zipped onto an external drive once a year is a perfectly reasonable backup. It is worth knowing that what you have preserved is the pictures and their internal dates, and an approximation of everything else.

How to see it on your own machine

This takes about two minutes and needs nothing installed.

One. Find a folder with a handful of photographs in it. In the folder window, switch to Details view, then right-click the column headings and turn on both Date created and Date modified. Note what they say.

Two. Right-click the folder, choose Send to, then Compressed (zipped) folder. Wait for the zip to appear beside it.

Three. Right-click the zip, choose Extract All, and send it somewhere new — the desktop will do. Open the result and look at the same two columns.

Four. Open one of the unpacked photographs’ properties, go to the Details tab, and find Date taken. Compare that against the other two. On most photographs it will be the only one of the three that has not moved at all, and if the picture was taken in summer it may now disagree with the modified date by an hour.

What you are looking for is not damage. It is which of those dates stayed still, because that tells you which one your library should be built on.

Four things widely said that are not right

“Zipping compresses the photos and loses quality.” No. Zip compression is lossless by definition — the bytes that come out are the bytes that went in, which is why a zip of a text file can be reopened and read. JPEGs barely shrink in a zip precisely because they are already compressed, and that is often mistaken for the zip failing to work. It is working; there is simply nothing left for it to squeeze.

“The zip preserves all the file’s dates.” It preserves one date, rounded to two seconds, with no time zone. The created date is reconstructed at the far end by whatever is doing the unpacking.

“If the date is wrong, the file is corrupted.” A wrong date and a damaged file have nothing to do with one another. Every file in the tests for this article came out perfect; only the labels on the outside moved.

“A better zip program would fix it.” Partly true, and worth being precise about. The format does allow optional extra fields that can carry a more precise time, and some archive programs write them. Neither of the tools built into Windows did: the archives made for this article were examined field by field and carried no extra timestamp data at all — zero bytes of it. So on a standard Windows machine, with the tools in front of you, the two-second limit is the real one.

The part specific to dates

There is a pattern under all of this, and it is the same one behind most wrong photo dates: the date on the outside of a file is a label, and labels get rewritten by every process a file passes through. Zipping rewrites them. Copying rewrites them. Uploading and downloading rewrite them. None of those processes is doing anything wrong, and the cumulative effect is a library where the file dates are a record of handling rather than a record of when anything was photographed.

The date inside the photograph does not behave that way. It was written once, by the camera, and nothing in this article could move it. Where that date still exists, it is simply the right answer, and the job is to get software to sort by it rather than by the label.

Where it does not exist — a scan, a screenshot, a photograph that has been through a chat app — the answer usually has not vanished so much as moved. It is in the filename, or in a small file sitting beside the photograph, or in the only file date that has not been overwritten yet. Working back from those is exactly what Photo Date Rescue does, and it is the reason a folder that came out of a zip with everything stamped the same minute is a solvable problem rather than a lost one.

Where this comes from

The date inside the photograph is the one that survived

A zip rounds the file's own dates and can move them an hour. The date the camera wrote inside the picture comes through untouched, and where that date is missing it can usually be worked back out. PDR reads what each file still remembers and writes the real date back inside the photograph.

Free Test Drive Buy Now

Frequently asked questions

Does zipping photos reduce their quality?

No. Zip compression is lossless, so the file that comes out is identical to the one that went in — the photographs unpacked for this article were compared against the originals and matched byte for byte. JPEGs hardly shrink inside a zip because they are already compressed, which is sometimes mistaken for the zip not working. Nothing is being thrown away.

Why do my photos have today’s date after I unzip them?

Because the created date is not stored in the archive at all. A zip keeps one timestamp per file, the modified one, and the created date has to be set by whatever unpacks it. Some tools copy the stored date across; others set it to the moment of extraction, which is why a folder of photographs from 2009 can arrive all stamped with this morning. The pictures are unchanged; only that one label is new.

Does a zip file keep the date a photograph was taken?

Yes, and that is the date worth trusting. The date the shutter fired is written inside the photograph by the camera, in the Exif block, and a zip never looks inside the files it carries. It comes out exactly as it went in, to the second, with no rounding. It is the file’s own dates on the outside — created and modified — that the archive approximates.

Why are my photo times an hour out after unzipping?

A zip timestamp has no time zone attached to it, so each program decides for itself whether to store local time or UTC, and the next program has to guess. The two zip tools built into Windows make opposite choices. Zip with one and unpack with the other and the gap shows up as exactly the daylight saving offset, so summer photographs move an hour and winter ones do not.

Can I get the original dates back after unzipping?

Usually, yes, because the answer rarely disappears — it moves. If the photograph still carries its Exif date, that date was never touched and software can simply be pointed at it. If it does not, the date is often recoverable from the filename, from a small file sitting beside the photograph, or from whichever file date has not been overwritten yet. Rounding to two seconds is not reversible, but a two-second error is not the problem anybody is actually trying to solve.