Re: datetime error? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: datetime error?
Date
Msg-id 4556.1009989308@sss.pgh.pa.us
Whole thread Raw
In response to datetime error?  (Karel Zak <zakkr@zf.jcu.cz>)
Responses Re: datetime error?  (Karel Zak <zakkr@zf.jcu.cz>)
List pgsql-hackers
Karel Zak <zakkr@zf.jcu.cz> writes:
>  I start fix my bug with "YY vs. zero" in formatting.c, and before it
>  a see current CVS:

> test=# select to_timestamp('10-10-2001', 'MM-DD-YYYY');
>       to_timestamp
> ------------------------
>  2001-10-10 00:00:00+02
> (1 row)

> test=# select to_date('10-10-2001', 'MM-DD-YYYY');
>   to_date
> ------------
>  2001-10-09
>          ^^

Hmm, is 2001-10-10 a daylight-savings transition day in your timezone?
Although I thought we'd fixed all those bugs ... and I don't see any
corresponding problem here.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Duplicate-key-detection failure case found in btree
Next
From: Tom Lane
Date:
Subject: Re: how to watch parse/plan trees