Skip to content

File info dating Y2k issue #3

@xahmol

Description

@xahmol

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:

EntryData[$19]:= Byte(AYear - 1900);

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 )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions