Re: BUG #6340: to_timestamp() miscalculates

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: hfuxelius(at)gmail(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #6340: to_timestamp() miscalculates
Date: 2011-12-15 16:16:35
Message-ID: 6871.1323965795@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

hfuxelius(at)gmail(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Kevin Grittner 2011-12-15 16:20:15 Re: BUG #6340: to_timestamp() miscalculates
Previous Message hfuxelius 2011-12-15 15:51:46 BUG #6340: to_timestamp() miscalculates