The following bug has been logged on the website:
Bug reference: 9897
Logged by: Georg Klimm
Email address: klimm(at)lohn24(dot)de
PostgreSQL version: 8.4.20
Operating system: Server @ LINUX, Client @ WIndows
Description:
SELECT '2014-03-26'::DATE AS date1, '2014-03-26'::DATE AS date2
returns 2456597 2456743
first is 2013-10-31 and second the correct 2014-03-26
same with 2014-03-27 or all other dates is working