Small fixes dealing with dates.