pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Carsten Klein <carsten.klein@axn-software.de>
To: Thomas Kellerer <spam_eater@gmx.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC Driver and timezones
Date: Tue, 18 May 2010 23:35:35 +0200 (CEST)
Message-ID: <e979a6b62190fc12d767b1aa28fb724e.squirrel@webmail.axn-software.de> (raw)
In-Reply-To: <hstmm1$96v$1@dough.gmane.org>
References: <hstmm1$96v$1@dough.gmane.org>


Hi,

actually, your application server is not using the system's default
timezone, see the configuration of your server.

I actually have filed this in the past as either bug or enhancement.
Basically the problem lies within the PGSQL JDBC driver, which will use
the application server's timezone setting when interpreting the data in
the timezone enabled table attributes.

In order to overcome this problem, I have adjusted a db layer that we are
using in the OSS VerA.Web project so that it will use proxies for the most
relevant objects (resultset and so on) that then will just drop the
timezone information in the data received from the database, so that when
instantiating the datetime object in the application server, it will
automatically take over the configured timezone. That way, you will
experience no timeshift, whatsoever.

See
https://evolvis.org/scm/viewvc.php/tags/tarent-database-1.5.4verawebpl3/src/main/java/de/tarent/dbla...

for more information.


Regards,

Carsten

--

Carsten Klein
Mobil +491 577 666 256 5
carsten.klein@axn-software.de

axn software UG (haftungsbeschränkt)
Wipperfürther Str. 278, 51515 Kürten

Geschäftsführung Carsten Klein
HRB 66732, Gerichtsstand Amtsgericht Bergisch Gladbach
Steuernr. 204/5740/0835, USt-IdNr. DE 266 540 939

Telefon +492 268 801 285, Telefax +492 268 801 285
www.axn-software.de, info@axn-software.de





view thread (13+ messages)  latest in thread

Message-ID: <e979a6b62190fc12d767b1aa28fb724e.squirrel@webmail.axn-software.de>
Permalink:  ../e979a6b62190fc12d767b1aa28fb724e.squirrel@webmail.axn-software.de/
Also on:    postgresql.org/message-id/e979a6b62190fc12d767b1aa28fb724e.squirrel@webmail.axn-software.de

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: carsten.klein@axn-software.de, spam_eater@gmx.net
  Subject: Re: JDBC Driver and timezones
  In-Reply-To: <e979a6b62190fc12d767b1aa28fb724e.squirrel@webmail.axn-software.de>
  References: <hstmm1$96v$1@dough.gmane.org> <e979a6b62190fc12d767b1aa28fb724e.squirrel@webmail.axn-software.de>

* 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