poelzi/OpenChronos — Issue #35: Error in date calculation
Author: darkith
Created: 2012-01-02 16:10:05+00:00
State: open

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.