X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id B776411F61D7 for ; Tue, 11 Apr 2006 14:28:52 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: 2.29 X-Spam-Level: ** X-Spam-Status: No, score=2.29 required=5 tests=[AWL=-0.508, DNS_FROM_RFC_ABUSE=0.479, DNS_FROM_RFC_POST=1.44, DNS_FROM_RFC_WHOIS=0.879] Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id NA+RI8m+3vqf for ; Tue, 11 Apr 2006 14:28:38 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from webmail-outgoing.us4.outblaze.com (webmail-outgoing2.us4.outblaze.com [205.158.62.67]) by postgresql.org (Postfix) with ESMTP id 5B56D11F6AC6 for ; Tue, 11 Apr 2006 14:28:45 -0300 (ADT) Received: from unknown (unknown [192.168.9.180]) by webmail-outgoing.us4.outblaze.com (Postfix) with QMQP id 8A8771800203 for ; Tue, 11 Apr 2006 17:28:44 +0000 (GMT) X-OB-Received: from unknown (208.36.123.30) by wfilter.us4.outblaze.com; 11 Apr 2006 17:28:43 -0000 Received: by ws7-1.us4.outblaze.com (Postfix, from userid 1001) id 7305786B12; Tue, 11 Apr 2006 17:28:44 +0000 (GMT) Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 From: "Wei Wei" To: pgsql-jdbc@postgresql.org Date: Tue, 11 Apr 2006 09:28:44 -0800 Subject: Calendar vs. Timestamp Received: from [24.87.9.157] by ws7-1.us4.outblaze.com with http for wei725@lycos.com; Tue, 11 Apr 2006 09:28:44 -0800 X-Originating-Ip: 24.87.9.157 X-Originating-Server: ws7-1.us4.outblaze.com Message-Id: <20060411172844.7305786B12@ws7-1.us4.outblaze.com> X-Archive-Number: 200604/80 X-Sequence-Number: 15014 I move this issue from the general mailing list. Here is my problem: In the Java application, I create a Calendar object and the getTime and get= TimeZone return the following values: * Sun Apr 09 12:40:52 PDT 2006=20 * Pacific Standard Time The Calendar object is matched to the timestamp with time zone data type th= rought Hibernate. And the above data is stored as the following: 2006-04-09 14:40:53.093-07 That is not correct. The command of "select now()" returns a correct value.= The PG version is 8.0.x and the jdbc version is 8.0.309.jdbc3. Is it a bug= in the driver?=20 Thanks. --=20 _______________________________________________ Search for businesses by name, location, or phone number. -Lycos Yellow Pa= ges http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.as= p?SRC=3Dlycos10