change the convert time function