Javascript plusMinutes() no longer working why?

I have a pipeline that uses the script snap and has java script in it. I use the .plusMinutes() which has been working fine for over a year, but now I am getting the following error message. “label=Script, failure=TypeError: pi.plusMinutes is not a function, reason=Script failed with the following error: TypeError: pi.plusMinutes is not a function”.
I am importing the following:
// Import the Java utility classes.