Date Compare Server Side Bug

Wappler 4.4.3
NodeJS 14
PostgreSQL 11

in API, we have a query that brings back date in this format: ‘2021-12-15T06:30:00.000Z’
added a condition to compare this date to NOW_UTC, the resultant check is
query.next_time > NOW_UTC ('2021-12-15T06:30:00.000Z' > '2021-12-12T06:41:56Z')
but this is returned back as FALSE!!! It should be TRUE.

did the same check on client side with this:
dmx.parse("'2021-12-15T06:30:00.000Z' > '2021-12-12T06:40:02Z'")
this was returned TRUE - as expected.

Please fix the server side issue with date comparison.

thank you.

Community Page
Last updated: