added closed to datetime for jobs