mach-kernel / cadius

A maintained fork of BrutalDeluxe's Cadius ProDOS disk imaging utility (used for making Apple II disk images).
GNU General Public License v3.0
31 stars 9 forks source link

Incorrect dates? #44

Open frankmilliron opened 1 month ago

frankmilliron commented 1 month ago

Hello! I extracted some files from Total Replay using CADIUS EXTRACTFILE, and for some reason the dates are showing up as 100 years off.

MacOS Sequoia 15.0.1. Cadius installed via Homebrew.

Screenshot 2024-10-14 at 3 44 00 PM

inexorabletash commented 1 month ago

Just commentary here - ProDOS technically has only 2 digit dates, in a 7-bit field. There are a couple ways to encode dates over 1999 in common use:

Decoding using both approaches simultaneously should be harmless (i.e. translate 124 to 2024, and also translate 24 to 2024). But I would refrain from encoding using the former, since a value > 99 may result in the "19100" problem for tools that were not tested beyond 1999, and erroneously giving a year of 1924 is probably better than a crash or latent data corruption.