Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id E10E9633FF7 for ; Fri, 13 Mar 2009 17:15:14 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 77510-05 for ; Fri, 13 Mar 2009 17:15:10 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mx.astrofoto.org (mx.astrofoto.org [216.254.78.156]) by mail.postgresql.org (Postfix) with ESMTP id D910E632718 for ; Fri, 13 Mar 2009 17:15:12 -0300 (ADT) Message-ID: <49BABEA4.60104@astrofoto.org> Date: Fri, 13 Mar 2009 16:14:28 -0400 From: Roland Roberts User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org References: <49BA8D93.4010901@astrofoto.org> <49BAAE48.8050705@astrofoto.org> In-Reply-To: <49BAAE48.8050705@astrofoto.org> Subject: Re: ResultSet.getTimestamp(Calendar) off by one-hour Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Version: 4.2 (built Tue, 02 May 2006 07:36:10 -0400) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200903/70 X-Sequence-Number: 19400 Roland Roberts wrote: > Okay, postgresql appears to be using the standard TZ offset regardless > of whether or not DST is in effect on the day in question. Hmmm, I *can* get the correct behavior IF I assign the environment variable TZ=America/New_York before I run the client program. But I don't need to do that when I'm talking to Oracle. For the Oracle case, the database is on another host, both still in US/Eastern time zone. Are there other ways to get PostgreSQL JDBC to understand the client timezone w/o explicitly setting TZ? I'm trying to find an idiot-proof (well, I'll settle for an idiot-resistant) method. roland -- PGP Key ID: 66 BC 3B CD Roland B. Roberts, PhD RL Enterprises roland@rlenter.com 6818 Madeline Court roland@astrofoto.org Brooklyn, NY 11220