I am trying to get all records from a postgres database where the date_completed (timestamp without timezone) is between startoftoday and endoftoday. However I cannot get the ODATA query for less than or greater than to work. I keep getting this error.
{
"status": 400,
"message": "We cannot apply operator < to types DateTime and DateTimeZone.\r\n inner exception: We cannot apply operator < to types DateTime and DateTimeZone.\r\nclientRequestId: 12f42943-0acf-4b4a-a482-3d72ca9dbf98",
"source": "postgresql-eus.azconn-eus.p.azurewebsites.net"
}The odata filter is equal to
utcnow('yyyy-MM-ddTHH:mm:ssZ’) lt date_completed This is the odata filter after the expressions run
2018-09-06T08:07:16Z lt date_completed