JDBC timestamps with timezones
David Wall <d.wall@computer.org>
From: "David Wall" <d.wall@computer.org>
To: <pgsql-interfaces@postgresql.org>
Date: 2001-03-04T23:32:35Z
Lists: pgsql-general
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