fix date format bug