PostGIS: SQL translation of DateDifference function fails against DATE columns

Description

The encoding works fine against TIMESTAMP, and the functions involved actually need one, won't work against a DATE column.

Environment

None
Fixed

Assignee

Andrea Aime

Reporter

Andrea Aime