Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 817051337B97 for ; Thu, 24 Feb 2011 17:23:36 -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 56260-01 for ; Thu, 24 Feb 2011 21:23:28 +0000 (UTC) X-Greylist: delayed 00:06:36.4273 by SQLgrey-1.7.6 Received: from nm1.bullet.mail.ne1.yahoo.com (nm1.bullet.mail.ne1.yahoo.com [98.138.90.64]) by mail.postgresql.org (Postfix) with SMTP id 001361337C66 for ; Thu, 24 Feb 2011 17:22:54 -0400 (AST) Received: from [98.138.90.53] by nm1.bullet.mail.ne1.yahoo.com with NNFMP; 24 Feb 2011 21:16:17 -0000 Received: from [98.138.84.38] by tm6.bullet.mail.ne1.yahoo.com with NNFMP; 24 Feb 2011 21:16:16 -0000 Received: from [127.0.0.1] by smtp106.mail.ne1.yahoo.com with NNFMP; 24 Feb 2011 21:16:16 -0000 X-Yahoo-Newman-Id: 963113.84442.bm@smtp106.mail.ne1.yahoo.com Received: from jonathanlaptop (JB@67.34.121.27 with login) by smtp106.mail.ne1.yahoo.com with SMTP; 24 Feb 2011 13:16:12 -0800 PST X-Yahoo-SMTP: 44.80yyswBBWn2mP4eIs.OiF0CguW7wtDDCwTEpCAZ4GQXK1x4I- X-YMail-OSG: YF2s4cMVM1np3mkOKOieq1oc55xwBsDI0CE04y5ktK3V91Z OlJfVOySUxgYcl1xjETcyfjGmlUkOQi6KYh43.qwsh1x56QepouVQxwxv2zB Pc74E4iPhQsEebHXRTvBJoIICEXQ7tPS1WqDdDU2gZ6gcHu6y1q71AMOjk4U 9Iz5xrpSbsI5482q_9z.nqBCSX3fXJhJHHYmPxWxIvx.DyMLVToj0dUlqDl_ b X-Yahoo-Newman-Property: ymail-3 Reply-To: From: "Jonathan Brinkman" To: Subject: LOCALTIMESTAMP has wrong time zone Date: Thu, 24 Feb 2011 16:16:10 -0500 Organization: BlackSky Technologies, Inc. Message-ID: <000001cbd468$124cc720$36e65560$@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: AcvUZ/xbd/r2F5J5ScW8OAm6R9pjgg== 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/207 X-Sequence-Number: 29479 Greetings I'm in Florida (Eastern Time Zone / New York), using Ubuntu 10.04LTS / Postgresql 8.4.7. My default timestamps in my database all are +5 hours in the future (probably GMT), unless I code the 'EST' time zone into the field's default (timezone('EST'::text, now())).If I use now() it is +5 hours, and if I use LOCALTIMESTAMP my SQL editor (EMS Postgresql Mgr) changes it to: 'now'::text::timestamp without time zone, which is also +5 hours. Anywhere I use LOCALTIMESTAMP in my functions, it is shifted +5 hours in the future. I must use timezone('EST'::text, now()) everywhere, rather than CURRENT_TIMESTAMP or LOCALTIMESTAMP. Major pain!! When I type date in Ubuntu Command line, I see correctly: Thu Feb 24 16:13:13 EST 2011 When I run dpkg-reconfigure tzdata, the linux time zone is correct: America / New York. I've set postgresql.conf --> time zone = 'America/New York' I've used: psql beta_main -c "SET TIME ZONE EST;" psql beta_main -c "SHOW TIME ZONE;" I've even reinstalled the Database from another server (where this is NOT happening!) after setting above stuff, and restarted postgresql, same results.