Fixes time zone problems introduced by Thomas' implementation of
TIMESTAMP WITHOUT TIME ZONE which caused the behavior of the previously
appropriate routine, timestamp_date(), to change for the worse in this
context.
* Quick hack: since our inputs are just like to_timestamp, hand over
* the whole input info struct...
*/
- return DirectFunctionCall1(timestamp_date, to_timestamp(fcinfo));
+ return DirectFunctionCall1(timestamptz_date, to_timestamp(fcinfo));
}
/**********************************************************************