Update to avoid using a system function that is being deprecated.
See https://github.com/civicrm/civicrm-core/pull/17068