Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 549341337BA6 for ; Thu, 24 Feb 2011 18:43:49 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 10947-02 for ; Thu, 24 Feb 2011 22:43:41 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from nm11.bullet.mail.ne1.yahoo.com (nm11.bullet.mail.ne1.yahoo.com [98.138.90.74]) by mail.postgresql.org (Postfix) with SMTP id 6104E133798E for ; Thu, 24 Feb 2011 18:43:41 -0400 (AST) Received: from [98.138.90.49] by nm11.bullet.mail.ne1.yahoo.com with NNFMP; 24 Feb 2011 22:43:40 -0000 Received: from [98.138.84.34] by tm2.bullet.mail.ne1.yahoo.com with NNFMP; 24 Feb 2011 22:43:40 -0000 Received: from [127.0.0.1] by smtp102.mail.ne1.yahoo.com with NNFMP; 24 Feb 2011 22:43:40 -0000 X-Yahoo-Newman-Id: 780096.54151.bm@smtp102.mail.ne1.yahoo.com Received: from jonathanlaptop (JB@67.34.121.27 with login) by smtp102.mail.ne1.yahoo.com with SMTP; 24 Feb 2011 14:43:40 -0800 PST X-Yahoo-SMTP: 44.80yyswBBWn2mP4eIs.OiF0CguW7wtDDCwTEpCAZ4GQXK1x4I- X-YMail-OSG: xTGf9DIVM1mQ3doh6udMz.Qf6hcO6vSwz.zslzDMuCkpegT H3SNsL.3OljQox31050eALwjShe8KKw1sPhFxqA4zOfbiq7CCaoyo957S2V_ YQqe9oC6TPRasEvRs76iq55hjKrIrrP7E1w9cmCHxx9TPIACRKHUwhP2iqYL a4pjbsixhT9gpLAoY_9UBIPwnBUprLiRDGimVu96Bz_aZtlOP_DnrAdWuRBd U7yMbCmWAIbDPxhy31XyLQbU10CLTeDT56p62T9KTGWH3yt2tvPNE3bzg36W pI49ta7Bl_CTa1IrOPoy456dfsw9pwJfDvr9rawq7 X-Yahoo-Newman-Property: ymail-3 Reply-To: From: "Jonathan Brinkman" To: "'Tom Lane'" , "'Kevin Grittner'" Cc: References: <000001cbd468$124cc720$36e65560$@com> <4D6681F1020000250003AFED@gw.wicourts.gov> <29565.1298586918@sss.pgh.pa.us> In-Reply-To: <29565.1298586918@sss.pgh.pa.us> Subject: Re: LOCALTIMESTAMP has wrong time zone Date: Thu, 24 Feb 2011 17:43:38 -0500 Organization: BlackSky Technologies, Inc. Message-ID: <000b01cbd474$47e70b50$d7b521f0$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcvUcx8zGollqEZvS4WHDWSviyMdRwAARHXQ Content-Language: en-us X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, UNPARSEABLE_RELAY=0.001 X-Spam-Level: X-Archive-Number: 201102/212 X-Sequence-Number: 29484 postgres@Cloud-DB1:~$ psql beta_cms_main -c "show timezone;" TimeZone ---------- EST (1 row) postgres@Cloud-DB1:~$ psql beta_cms_main -c "select now();" now ------------------------------- 2011-02-24 17:42:40.023498-05 (1 row) postgres@Cloud-DB1:~$ psql beta_cms_main -c "select localtimestamp;" timestamp ---------------------------- 2011-02-24 17:42:40.078052 (1 row) All looks correct to me! (it is 5:42PM EST now). -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us] Sent: Thursday, February 24, 2011 5:35 PM To: Kevin Grittner Cc: JB@BlackSkyTech.com; pgsql-bugs@postgresql.org Subject: Re: [BUGS] LOCALTIMESTAMP has wrong time zone "Kevin Grittner" writes: > "Jonathan Brinkman" wrote: >> My default timestamps in my database all are +5 hours in the future > Can you copy paste actual statements and results? In particular, let's see the result of these commands in psql: show timezone; select now(); select localtimestamp; What it sounds like to me is an incorrect default setting of "timezone" but it's hard to be sure with no concrete data. regards, tom lane