fixed bug that made the month portion of the date always wrong