Re: BUG #6340: to_timestamp() miscalculates - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #6340: to_timestamp() miscalculates
Date
Msg-id 6871.1323965795@sss.pgh.pa.us
Whole thread Raw
In response to BUG #6340: to_timestamp() miscalculates  (hfuxelius@gmail.com)
List pgsql-bugs
hfuxelius@gmail.com writes:
> test to run: select to_timestamp('2011,03,27,02,11,11',
> 'YYYY,MM,DD,HH24,MI,SS')

> and the run: select to_timestamp('2011,03,27,03,11,11',
> 'YYYY,MM,DD,HH24,MI,SS')

> It miscalculates 02 hour to 03 hour by some reason

If that date is a DST forward transition date in your timezone, then
this behavior is neither surprising nor a bug.

            regards, tom lane

pgsql-bugs by date:

Previous
From: hfuxelius@gmail.com
Date:
Subject: BUG #6340: to_timestamp() miscalculates
Next
From: "Kevin Grittner"
Date:
Subject: Re: BUG #6340: to_timestamp() miscalculates