Error using server Parser - toUTCTime

Wappler Version : 3.4.0 (but happened in previous version too)
Operating System : Win10, NodeJS / Docker project

Expected behavior

When you convert a date or time to UTC or Other format options on the server action side, it should convert to the chosen format

Actual behavior

What actually happens?

It does not convert the date/time and the server action (a database update in this case) fails.

Error message:

{status: "500",…}
message: "Parser Error: Formatter "toUTCTime" does not exist, expression {{$_POST.start.toUTCTime()}}"
stack: "Error: Parser Error: Formatter "toUTCTime" does not exist, expression {{$_POST.start.toUTCTime()}}↵    at /opt/node_app/lib/core/parser.js:694:27↵    at /opt/node_app/lib/core/parser.js:661:25↵    at parser (/opt/node_app/lib/core/parser.js:352:19)↵    at parseValue (/opt/node_app/lib/core/parser.js:725:24)↵    at parseValue (/opt/node_app/lib/core/parser.js:716:26)↵    at parseValue (/opt/node_app/lib/core/parser.js:716:26)↵    at Object.parseValue (/opt/node_app/lib/core/parser.js:716:26)↵    at App.parseSQL (/opt/node_app/lib/core/app.js:348:23)↵    at App.update (/opt/node_app/lib/modules/dbupdater.js:38:26)↵    at App._exec (/opt/node_app/lib/core/app.js:255:57)"
status: "500"

This is an image of the server action step. Its a simple UPDATE. The START and END fields in this case are TIME inputs. I have also tried with date, datetime and also the DMX date/time picker inputs. Anytime the formatter is used it fails and throws the above error

How to reproduce

As above. Set up a DB action, such as a DB UPDATE and use a date or time input that uses the toUTCTime() formatter or the toLocalTime() formatter.

Community Page
Last updated: