Karel Zak <zakkr(at)zf(dot)jcu(dot)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