Hacker News new | ask | show | jobs
by barosl 1658 days ago
> Since the lower four bits are /2

Wow, so the second field of every timestamp in a ZIP file must be an even number? That's shocking to me! It seems that RAR and FAT32 share this problem. How could I not know this?

3 comments

FAT32 timestamps are also stored as local time instead of UTC, so there's no way to know a real mtime at all, unless you have out-of-band knowledge. Just nonsense all round -

- by modern standards.

The really impressive thing is that our industry has managed to paper over most relics from The Olden Days to the point where this discovery is surprising!

Because there are several extensions (extra fields) to ZIP that record the full modified date in addition to creation and access date if the OS supports them.
You've clearly never rsync'd data to FAT before...