Re: JDBC timestamps with timezones

From: Barry Lind <barry(at)xythos(dot)com>
To: David Wall <d(dot)wall(at)computer(dot)org>
Cc: pgsql-jdbc(at)postgresql(dot)org, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: JDBC timestamps with timezones
Date: 2001-03-05 00:01:53
Message-ID: 3AA2D771.4090705@xythos.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-interfaces pgsql-jdbc

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(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Davis 2001-03-05 00:08:39 Re: postgres locks... [more information]
Previous Message David Wall 2001-03-04 23:32:35 JDBC timestamps with timezones

Browse pgsql-interfaces by date

  From Date Subject
Next Message Matthias Teege 2001-03-05 06:52:55 Re: pg_connect dumps core
Previous Message David Wall 2001-03-04 23:32:35 JDBC timestamps with timezones

Browse pgsql-jdbc by date

  From Date Subject
Next Message Gavin Sherry 2001-03-05 09:26:40 Re: postmaster confiugration and hardware configuration
Previous Message David Wall 2001-03-04 23:32:35 JDBC timestamps with timezones