A couple of bug fixes with the dates.