Re: insert of date is wrong - Mailing list pgsql-bugs

From Tom Lane
Subject Re: insert of date is wrong
Date
Msg-id 20311.996043964@sss.pgh.pa.us
Whole thread Raw
In response to insert of date is wrong  (pgsql-bugs@postgresql.org)
List pgsql-bugs
pgsql-bugs@postgresql.org writes:
> when I insert the date '1914/01/01' in a column with the 'date' format, the table returns the value '1913/12/31'

Not for me:

regression=# create table foo (f1 date);

CREATE
regression=#
regression=# insert into foo values ('1914/01/01');
INSERT 158325 1
regression=# select * from foo;

     f1
------------
 1914-01-01
(1 row)

The usual questions ensue: what PG version are you running, on what
platform, with what timezone and datestyle settings?

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: real or float4 '=' operator is broken in 7.1.2
Next
From: Tom Lane
Date:
Subject: Re: pg_dump doesn't handle CREATE FUNCTIONs well