fix date format bugs