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 2FA2B52F42 for ; Mon, 25 Jul 2005 19:52:00 -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 16864-06 for ; Mon, 25 Jul 2005 22:51:56 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.207]) by svr1.postgresql.org (Postfix) with ESMTP id 55E8452ECE for ; Mon, 25 Jul 2005 19:51:55 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id 71so965759wri for ; Mon, 25 Jul 2005 15:51:58 -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:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oTqNseCisjDunIk5yAVMfGqJsPTvY+3PwiSSoQ3MSdu/HNLM9nWl7chCAQAfTBgHL+l7azuL0jB7ZOBKVu5HovJU7Ts/CiGFp15vSutGba6m/pUpf+O7vcPOOdvnQRjnCsk4gp0rl+qiUlvQumuKY1R+g4+NALQ8bhoJNBe3uw0= Received: by 10.54.68.4 with SMTP id q4mr2359523wra; Mon, 25 Jul 2005 15:51:58 -0700 (PDT) Received: by 10.54.143.14 with HTTP; Mon, 25 Jul 2005 15:51:58 -0700 (PDT) Message-ID: Date: Tue, 26 Jul 2005 00:51:58 +0200 From: "emergency.shower@gmail.com" Reply-To: "emergency.shower@gmail.com" To: Christian Cryder Subject: Re: Timestamp Summary Cc: List In-Reply-To: <90876a9e050725094560a4aa6a@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <90876a9e050725094560a4aa6a@mail.gmail.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.061 tagged_above=0 required=5 tests=AWL, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200507/303 X-Sequence-Number: 13451 On 7/25/05, Christian Cryder wrote: > [...] > This piece of code only needs to get executed when the connection is > first opened to the DB, and from that point on it will ensure that the > db is in functionally the same timezone as the server (taking DST > on/off into account as well). In other words, if my client is running > in MST w/ DST turned off, the server will be configured to etc/gmt+7, > and any dates I insert will be left untouched. >=20 > That make sense? Hi Christian, Besides setTimestamp(int, Timestamp) and getTimestamp(int) we have the more general methods setTimestamp(int, Timestamp, Calendar) and getTimestamp(int, Calendar). If I understand the specs correctly, calls to the methods without a Calendar parameter should be equivalent to the call to the other methods with a Calendar that has time zone TimeZone.getDefault().