fix the time covert not string error bug.