Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 168C16500B8 for ; Wed, 9 Jul 2008 01:48:00 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 55330-03 for ; Wed, 9 Jul 2008 01:47:46 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www01.kensystem.com (www01.kensystem.com [72.19.170.120]) by postgresql.org (Postfix) with ESMTP id F2F326506E6 for ; Wed, 9 Jul 2008 01:31:12 -0300 (ADT) Received: from 192.168.0.3 by www01.kensystem.com (SMTPD); id s20080709043109.248419; Wed, 09 Jul 2008 04:31:09 Message-ID: <48743F0C.6020504@kensystem.com> Date: Tue, 08 Jul 2008 22:31:08 -0600 From: Ken Johanson User-Agent: Thunderbird 1.5.0.14 (Windows/20071210) MIME-Version: 1.0 To: Oliver Jowett CC: pgsql-jdbc@postgresql.org Subject: Re: Timestamp without Timezone and differing client / server tzs References: <4873154E.6020808@kensystem.com> <4873201F.1000700@opencloud.com> <487439D8.2050508@kensystem.com> <48743B53.4000002@opencloud.com> In-Reply-To: <48743B53.4000002@opencloud.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200807/16 X-Sequence-Number: 18801 Oliver Jowett wrote: > Ken Johanson wrote: > >> So, short of passing a calendar to setTimezone, there is no other way >> to indicate to the driver that zone-less date/time type values should >> be translated to the server's different timezone, is this correct? > > You could change the client JVM's default timezone I suppose. > > I still don't understand exactly what you are trying to do, though. > I could probably summarize it best by saying that I would like to place all the server-specific info (including timezone) into the connection URL, and leave the app to only pass what it and the jvm otherwise considers to be a implicit/local timestamp. To put it another way, Timestamp being a long integer, a point in time that is the same anywhere, and we let the driver and database(s) connectivity implicitly handle it's string nature in sql/iso8601. This is useful where plural databases (not under my control) may exist each in different timezones, and the app must deal with each concurrently; where storing server configs (separate from the URL) and passing Calendar objects for each, could be avoided. k