fix date format failure