Skip to content

Error in date calculation #35

@darkith

Description

@darkith

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.

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