Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix POSIX time calculations #10

Merged
merged 1 commit into from
Feb 21, 2018
Merged

fix POSIX time calculations #10

merged 1 commit into from
Feb 21, 2018

Conversation

a2-4am
Copy link
Contributor

@a2-4am a2-4am commented Feb 21, 2018

localtime() returns a date with the year as year-1900 (presumably a terrible Y2K hack made ~19 years ago) but passes it to the function BuildProDOSDate() function that expects the year to be the actual year.

Separately but relatedly, it returns months 0-11 but passes them to a function that expects 1-12.

@mach-kernel
Copy link
Owner

Sorry about that, should have QA'd this more attentively! I'll merge and release new bins with the patch tonight. Also have to fix a bunch of the ugly preproc. stuff going on in there.

Thank you much!

@mach-kernel mach-kernel merged commit 0338055 into mach-kernel:master Feb 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants