Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a8keW-0002wt-9r for pgsql-jdbc@arkaria.postgresql.org; Tue, 15 Dec 2015 08:08:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a8keV-0004cg-P2 for pgsql-jdbc@arkaria.postgresql.org; Tue, 15 Dec 2015 08:08:07 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a8keU-0004XU-Ic for pgsql-jdbc@postgresql.org; Tue, 15 Dec 2015 08:08:06 +0000 Received: from mail.netcetera.ch ([194.126.145.7] helo=mail.netcetera.com) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1a8keR-0002iY-1i for pgsql-jdbc@postgresql.org; Tue, 15 Dec 2015 08:08:05 +0000 Received: from netcetera.com (smtp-int.netcetera.com [172.16.0.139]) by mail.netcetera.com (8.13.8/8.14.1) with ESMTP id tBF81fxC003559 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 15 Dec 2015 09:01:41 +0100 Received: from exchange01.one.nca (exchange01.one.nca [172.16.1.20]) by netcetera.com (8.13.8/8.14.1) with ESMTP id tBF81dGr003493; Tue, 15 Dec 2015 09:01:40 +0100 Received: from malal.local (172.16.1.29) by exchange01.one.nca (172.16.1.20) with Microsoft SMTP Server (TLS) id 15.0.712.24; Tue, 15 Dec 2015 09:01:36 +0100 Subject: Re: timestamp with time zone wire format References: <566EC314.7030109@netcetera.ch> CC: Vladimir Sitnikov To: From: Philippe Marschall Message-ID: <566FC8DF.3010705@netcetera.ch> Date: Tue, 15 Dec 2015 09:01:35 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [172.16.1.29] X-ClientProxiedBy: EXCHANGE02.one.nca (172.16.1.21) To exchange01.one.nca (172.16.1.20) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org On 14.12.15 14:43, Vladimir Sitnikov wrote: >> I can write parse code > > Parse code for timestampTZ is probably there. The missing part is > conversion from-to JSR-310. The only thing I could find is TimestampUtils#toTimestampBin [1] there the time zone either comes from the caller or the system default, never the database. Form reading the docs I get the impression the time zone isn't stored so there's nothing to parse. >> for backwards compatibility with older Java/JDBC versions a dedicated class would probably be better > > Things will get much easier after > https://github.com/pgjdbc/pgjdbc/pull/435 is merged in. Is there an ETA for this? [1] https://github.com/pgjdbc/pgjdbc/blob/master/org/postgresql/jdbc2/TimestampUtils.java#L623 Cheers Philippe -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc