But with server side formatter for `dateAdd`

Wappler Version : 4.0.5
Operating System : Win 10 Pro
Server Model: NodeJS
Database Type: PostgreSQL 11
Hosting Type: DigitalOcean

in a server action, a variable with value {{$_POST.startTime.dateAdd('minutes', queryData.tsdiff)}} has output on.
In the API response as seen in browser - unable to see the output variable at all!
After changing it to {{$_POST.startTime}} - can see the variable in the output as expected.

if i add some more text to the variable the start time is: {{$_POST.startTime.dateAdd('minutes', queryData.tsdiff)}} then the output shows the variable - however, the time is always 12:00:00 only. no matter what values do startTime and queryData.tsdiff have.

Please fix these bugs.

What value does the:

{{$_POST.startTime}}

Return exactly? What is the exact value? If you don’t see an output probably the value is not what the formatter expecting.

an example for value passed from post for startTime variable is: 04:10:00

and the data from queryData.tsdiff is a number from an int4 field in PostgreSQL DB.

What is the input type of the {{$_POST.startTime}} you are using in your form?

startTime is a select drop down with time in text and value both in this format: 04:10:00

Unzip following file to lib/core.

util.zip (1.5 KB)

This should now be fixed in Wappler 4.0.6

This topic was automatically closed after 47 hours. New replies are no longer allowed.