Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id E7393CBE9C3 for ; Thu, 15 Dec 2011 12:16:48 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RbDzE-0004ie-L9 for pgsql-bugs@postgresql.org; Thu, 15 Dec 2011 16:16:49 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id pBFGGZNF006872; Thu, 15 Dec 2011 11:16:35 -0500 (EST) To: hfuxelius@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6340: to_timestamp() miscalculates In-reply-to: References: Comments: In-reply-to hfuxelius@gmail.com message dated "Thu, 15 Dec 2011 15:51:46 +0000" Date: Thu, 15 Dec 2011 11:16:35 -0500 Message-ID: <6871.1323965795@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -4.2 (----) X-Archive-Number: 201112/113 X-Sequence-Number: 31924 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