Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id D150FCBE9C4 for ; Thu, 15 Dec 2011 12:56:42 -0400 (AST) Received: from mail-lpp01m010-f46.google.com ([209.85.215.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RbEbp-0005eC-JW for pgsql-bugs@postgresql.org; Thu, 15 Dec 2011 16:56:42 +0000 Received: by lagp5 with SMTP id p5so1077257lag.19 for ; Thu, 15 Dec 2011 08:56:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=Atcw3Qb9B2N/xyhqQ4Wvi8A8gG1XtaiCc2VK6SjTuPo=; b=hj24ijEgf96A0dHrQt66SoXp4iFUSQSS/2qKtoPqQdaxyxC5o0/i2oeOD3db648nFA XMIHenydX+1W9omW/oEi6dXnFHlMYaPsNxWr3ZX2j71fFQR5hMgzzC7HYGtWAxARMZlm A8D5JSzQqK4ufYOIKBF+HXLpJLh2+4ujDi2BY= Received: by 10.152.144.136 with SMTP id sm8mr4158630lab.33.1323968188151; Thu, 15 Dec 2011 08:56:28 -0800 (PST) Received: from the-rocket.lan (h155n2c1o851.bredband.skanova.com. [81.225.33.155]) by mx.google.com with ESMTPS id mi5sm5811162lab.14.2011.12.15.08.56.26 (version=SSLv3 cipher=OTHER); Thu, 15 Dec 2011 08:56:26 -0800 (PST) Subject: Re: BUG #6340: to_timestamp() miscalculates Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Hans-Henrik Fuxelius In-Reply-To: <4EE9C9DF0200002500043D02@gw.wicourts.gov> Date: Thu, 15 Dec 2011 17:56:25 +0100 Cc: Content-Transfer-Encoding: quoted-printable Message-Id: <2F9ADE33-9F9B-4302-ACC3-3E6FD43AE35A@gmail.com> References: <4EE9C9DF0200002500043D02@gw.wicourts.gov> To: "Kevin Grittner" X-Mailer: Apple Mail (2.1084) X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201112/117 X-Sequence-Number: 31928 Thanx a lot for your promt respons :) You are absolutely right, its the = daylight saving that date and hour, I had it as an key in my GPS data = and was very confused!!! Again - Thanx /Hans-Henrik On Dec 15, 2011, at 5:20 PM, Kevin Grittner wrote: > wrote: >=20 >> test to run: select to_timestamp('2011,03,27,02,11,11', >> 'YYYY,MM,DD,HH24,MI,SS') >>=20 >> and the run: select to_timestamp('2011,03,27,03,11,11', >> 'YYYY,MM,DD,HH24,MI,SS') >>=20 >> It miscalculates 02 hour to 03 hour by some reason >=20 > I don't know what time zone you're in, or whether daylight saving > time kicks in on that date. *Is* there a 02:11:11 on that date, or > is that when time "springs forward" by an hour in the spring for your > locale? >=20 > -Kevin