From: Roland Roberts <roland@astrofoto.org>
To: pgsql-jdbc@postgresql.org
Subject: Re: ResultSet.getTimestamp(Calendar) off by one-hour
Date: Fri, 13 Mar 2009 16:14:28 -0400
Message-ID: <49BABEA4.60104@astrofoto.org> (raw)
In-Reply-To: <49BAAE48.8050705@astrofoto.org>
References: <49BA8D93.4010901@astrofoto.org>
<49BAAE48.8050705@astrofoto.org>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: roland@astrofoto.org
Subject: Re: ResultSet.getTimestamp(Calendar) off by one-hour
In-Reply-To: <49BABEA4.60104@astrofoto.org>
References: <49BA8D93.4010901@astrofoto.org> <49BAAE48.8050705@astrofoto.org> <49BABEA4.60104@astrofoto.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox