fix date format issue