bildwelt
E2E FORUM
E2E Bridge E2E Commerce

Deprecation of currentLocalDateTime() operation. How to use the new one

E2E Forum Modeling & Development Deprecation of currentLocalDateTime() operation. How to use the new one

This topic contains 0 replies, has 1 voice, and was last updated by  Jürgen 3 years, 1 month ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1772

    Jürgen
    Moderator

    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”);

     

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.