Fix dateAtEndOfYear returns end day of current month