M3wP / GEOSBuild

Build tool for GEOS files (on the C64 and C128)
6 stars 4 forks source link

File info dating Y2k issue #3

Open xahmol opened 1 year ago

xahmol commented 1 year ago

Presently, GEOSBuild creates a file information block date with the year 123 instead of 23. Which shows in GEOS Megapatch 3.3 for 128 as this:

image

Cause is this lineof code: https://github.com/M3wP/GEOSBuild/blob/a06fff376f46d29c86930fdabbde2b0f9ec518b9/C64D64Image.pas#L449

The -1900 is the issue here, of course with that, 2023 gets 123. Changed this now in my local build to EntryData[$19]:= Byte(AYear - 2000);

and now it works as expected by me.

image

(Bug actually has been spotted by MarkusC64 in this forumthread: https://www.forum64.de/index.php?thread/133681-news-zur-ultimate-1541-ii-und-geos/&postID=1985274#post1985274 )