JDBC timestamps with timezones

From: "David Wall" <d(dot)wall(at)computer(dot)org>
To: <pgsql-interfaces(at)postgresql(dot)org>
Subject: JDBC timestamps with timezones
Date: 2001-03-04 23:32:35
Message-ID: 002701c0a503$64838640$5a2b7ad8@expertrade.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-interfaces pgsql-jdbc

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Barry Lind 2001-03-05 00:01:53 Re: JDBC timestamps with timezones
Previous Message Paulo Parola 2001-03-04 23:07:20 With which user Apache accesses PostgreSQL (was Re: How to automatically start postmastrer with TCP/IP support (-i option) ???)

Browse pgsql-interfaces by date

  From Date Subject
Next Message Barry Lind 2001-03-05 00:01:53 Re: JDBC timestamps with timezones
Previous Message Bill Barnes 2001-03-04 22:50:20 pgaccess on Win9x

Browse pgsql-jdbc by date

  From Date Subject
Next Message Barry Lind 2001-03-05 00:01:53 Re: JDBC timestamps with timezones
Previous Message Bill Barnes 2001-03-04 22:50:20 pgaccess on Win9x