bug fix in date format