The first one is most likely caused by the executeCommandLine
which has changed a bit. See the docs for an example:
The second one uses now
from the Jodatime library. OH3 no longer uses this library so you’ll need to change that. See the following topic for more information: