When using the
The operation ‘currentLocalDateTime()’ you will get the warning “The operation ‘currentLocalDateTime()’ is deprecated because only one timezone is used internally. However, if the local time shall be printed use ‘printLocalDateTimeExpression(format)’.
Here are two examples which might be helpful when migrate Version 4 Bridge models:
depreacted: local localCurrentDateTime = currentLocalDateTime();
use this:
local localCurrentDateTime = currentDateTime().printLocalDateTimeExpression(“%Y-%m-%dT%H:%M:%S.%sZ”).convertToDateTime();
depcrecated:
set dateStringOld = currentLocalDateTime().printDateTimeExpression(, “%Y%m%d%H%M%S”);
use this:
set dateStringNew = currentDateTime().printLocalDateTimeExpression(“%Y%m%d%H%M%S”);