Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
hfuxelius(at)gmail(dot)com writes:
> test to run: select to_timestamp('2011,03,27,02,11,11',

> and the run: select to_timestamp('2011,03,27,03,11,11',

> 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

pgsql-bugs by date

Next:From: Kevin GrittnerDate: 2011-12-15 16:20:15
Subject: Re: BUG #6340: to_timestamp() miscalculates
Previous:From: hfuxeliusDate: 2011-12-15 15:51:46
Subject: BUG #6340: to_timestamp() miscalculates

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group