X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1729952C21 for ; Mon, 1 Aug 2005 16:30:06 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 90517-09 for ; Mon, 1 Aug 2005 19:30:03 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.194]) by svr1.postgresql.org (Postfix) with ESMTP id A61F352C0E for ; Mon, 1 Aug 2005 16:29:59 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id i21so1068820wra for ; Mon, 01 Aug 2005 12:30:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=W9QB1YehH+HPPVT/uWWv7EFxlHTIWxeCJQRQSd0xC4NNsQzS2SwPOC2FY1aZqwVut2hUKaI75pEapmbJRHqwOT+ocHf/hqh8yzxOPoodQW1jFZFQH4zUJwy/+QHW/mhkGKteRfyupWqkKTj+Px8p+MgrMAyuPu0QGBmTGt0Giqk= Received: by 10.54.52.55 with SMTP id z55mr2542921wrz; Mon, 01 Aug 2005 12:30:00 -0700 (PDT) Received: by 10.54.143.14 with HTTP; Mon, 1 Aug 2005 12:30:00 -0700 (PDT) Message-ID: Date: Mon, 1 Aug 2005 21:30:00 +0200 From: "emergency.shower@gmail.com" Reply-To: "emergency.shower@gmail.com" To: "pgsql-jdbc@postgresql.org" Subject: Re: Timestamp changes committed to HEAD In-Reply-To: <42EDC90C.4040506@opencloud.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <42EDC90C.4040506@opencloud.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.278 tagged_above=0 required=5 tests=AWL, RCVD_BY_IP, TO_ADDRESS_EQ_REAL X-Spam-Level: X-Archive-Number: 200508/6 X-Sequence-Number: 13575 On 8/1/05, Oliver Jowett wrote: > I've committed my Timestamp/Date/Time changes to CVS HEAD; here's the > commit message. With these changes {get,set}{Timestamp,Date,Time} should > respect Calendars properly and not make any assumptions about server > timezone vs. JVM timezone. This driver version works better with {get,set}Timestamp than any other versions I've tested before. My tests use three 8.03 severs with server timezones UTC, CET and America/St_Johns (Newfoundland). Timestamps 1970-01-01 00:00:00+0000, 2000-01-01 00:00:00+0000 and 2000-07-01 00:00:00+0000 are written to TIMESTAMP WITH TIME ZONE and TIMESTAMP WITHOUT TIME ZONE fields, read, and then compared to the original values. Additionally, the values in the database were checked with pgAdmin III as a client. Everything seems to be OK, except that read operations from the America/St_Johns server lead to a deviation of minus half an hour, probably due to a rounding error in the driver's getTimestamp implementation. Regards, Alex