Fix a remaining cursorYear instead of stateYear
Summary: Ref T10747. Last test failed because we were looking at weekdays in the wrong year. Root issue is bad cursorYear, other changes are just cleanup/debugging.
Test Plan: Unit tests now pass.
Reviewers: chad
Reviewed By: chad
Maniphest Tasks: T10747
Differential Revision: https://secure.phabricator.com/D16607