Fix off-by-one bug in DayOfWeek functions

http://www.timeanddate.com/calendar/monthly.html?year=2006&month=1