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

Error in date calculation #35

Open
darkith opened this issue Jan 2, 2012 · 0 comments
Open

Error in date calculation #35

darkith opened this issue Jan 2, 2012 · 0 comments

Comments

@darkith
Copy link

darkith commented Jan 2, 2012

Day of the week is incorrectly calculated starting in January 2012. (e.g. SUN for Jan 2nd)

Reviewed algorithm from http://web.archive.org/web/20090309071604/http://klausler.com/new-dayofweek.html

Changed BASE_YEAR in logic\date.c:
< #define BASE_YEAR 2001 // not a leap year, so no need to add 1


         #define BASE_YEAR 1984 

And it appears to correctly calculate the Dotw now.

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

No branches or pull requests

1 participant