From: David Wall <d.wall@computer.org>
To: pgsql-interfaces@postgresql.org
Subject: JDBC timestamps with timezones
Date: Sun, 4 Mar 2001 15:32:35 -0800
Message-ID: <002701c0a503$64838640$5a2b7ad8@expertrade.com> (raw)
References: <20010304225020.12038.qmail@web214.mail.yahoo.com>
In reading about how Timestamps are stored in Postgresql 7.1 (they are
stored in GMT based on the TZ in effect on the server running the backend),
I was wondering how this impacts JDBC.
We want to be able to retrieve timestamps from the database and then show
them to invididual users based on their specified timezone which we know in
advance. With Java, I can take a Date/Calendar and get the current time
using a specified TimeZone object. Does the JDBC then know to always
retrieve the timestamp and keep it internally as GMT, too so that all the
time zone stuff will work?
Thanks,
David
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: d.wall@computer.org
Subject: Re: JDBC timestamps with timezones
In-Reply-To: <002701c0a503$64838640$5a2b7ad8@expertrade.com>
* 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