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 4BAD95281B for ; Wed, 20 Jul 2005 14:06:16 -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 19584-02 for ; Wed, 20 Jul 2005 17:06:13 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.199]) by svr1.postgresql.org (Postfix) with ESMTP id 7AE5852816 for ; Wed, 20 Jul 2005 14:06:12 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id i21so1487161wra for ; Wed, 20 Jul 2005 10:06:12 -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=mLBq+JE8UJTCWwHspdlD9UVfryfSE/WruYU1E2/4X657rqOW6Vj8Ri17efPkdSLEStEoGV/BFTQ3knQSWAkOHhpsKv4Q6vlsq0tR94VBRUcbjlnuhhI/eYw2117N1RLpbZjJDBVKQCbUy1kw1bLrvVt0mJaJSNClaYmwnWNhdRc= Received: by 10.54.99.17 with SMTP id w17mr148064wrb; Wed, 20 Jul 2005 10:05:36 -0700 (PDT) Received: by 10.54.86.16 with HTTP; Wed, 20 Jul 2005 10:05:36 -0700 (PDT) Message-ID: <90876a9e0507201005277e4a0a@mail.gmail.com> Date: Wed, 20 Jul 2005 11:05:36 -0600 From: Christian Cryder Reply-To: Christian Cryder To: Kris Jurka Subject: Re: Timestamp Conversion Woes Redux Cc: Oliver Jowett , pgsql-jdbc@postgresql.org In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <90876a9e05071810503606d431@mail.gmail.com> <42DCF0C9.4030501@opencloud.com> <23396.1121781259@sss.pgh.pa.us> <392278AB-987F-40CF-B59D-DDF53B9A4ACF@fastcrypt.com> <90876a9e050719093261c52c64@mail.gmail.com> <42DDF238.8090601@opencloud.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.092 tagged_above=0 required=5 tests=AWL, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200507/183 X-Sequence-Number: 13331 On 7/20/05, Kris Jurka wrote: > Currently everything works if the client and server are in > the same timezone which is 99% of the time. =20 Just to clarify - this is not technically correct. If you have a zoneless timestamp in the db, and your client and server are running in daylight savings time, and that date happens to fall in DST "no man's land" (eg. between 1 and 2 AM on fist Sunday in April), that value WILL get munged when you read it, and it stays munged when you write it back - regardless of how the column is declared in the db. This is a function of the timestamp getting flattened to a String (which in turn uses a Calendar, which in turn applies DST to display a "valid" time, which in turn munges the data). So there is a scenario where the dates will still get munged even though client and server are in the same timezone. And that's a problem. Christian