Received: from ns.sharemation.com (h-64-105-36-191.snvacaid.covad.net [64.105.36.191]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f25021x92711; Sun, 4 Mar 2001 19:02:01 -0500 (EST) (envelope-from barry@xythos.com) Received: from xythos.com (IDENT:blind@frog.xythos.com [192.168.254.110]) by ns.sharemation.com (8.9.3/8.8.7) with ESMTP id PAA26113; Sun, 4 Mar 2001 15:49:05 -0800 Message-ID: <3AA2D771.4090705@xythos.com> Date: Sun, 04 Mar 2001 16:01:53 -0800 From: Barry Lind User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16-22smp i686; en-US; m18) Gecko/20010131 Netscape6/6.01 X-Accept-Language: en MIME-Version: 1.0 To: David Wall CC: pgsql-jdbc@postgresql.org, pgsql-interfaces@postgresql.org Subject: Re: JDBC timestamps with timezones References: <20010304225020.12038.qmail@web214.mail.yahoo.com> <002701c0a503$64838640$5a2b7ad8@expertrade.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200103/40 X-Sequence-Number: 1201 You shouldn't have any problems with the 7.1 drivers doing what you need. The 7.1 jdbc driver should correctly handle timezones. The 7.0 drivers didn't work correctly if the client timezone and server timezones were different. Since 7.1 is still in beta, please test it out and report any bugs you find. thanks, --Barry David Wall wrote: > 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 > > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly