fixing display of dates