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 61B9152838 for ; Fri, 22 Jul 2005 13:30:43 -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 29960-10 for ; Fri, 22 Jul 2005 16:30:33 +0000 (GMT) Received: from gwmta.wicourts.gov (gwmta.wicourts.gov [165.219.244.91]) by svr1.postgresql.org (Postfix) with ESMTP id 25A7252996 for ; Fri, 22 Jul 2005 13:30:32 -0300 (ADT) Received: from Courts-MTA by gwmta.wicourts.gov with Novell_GroupWise; Fri, 22 Jul 2005 11:30:31 -0500 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.2 Date: Fri, 22 Jul 2005 11:30:12 -0500 From: "Kevin Grittner" To: Cc: Subject: Re: Timestamp Conversion Woes Redux Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.011 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/252 X-Sequence-Number: 13400 Argh! I've found some comments on this thread confusing, and I've discovered the source of this confusion -- I was thinking that a column defined as type "timestamp with time zone" would store a time zone with the timestamp. (Really, I did read the documentation on data types, but the discussion of how this data type is implemented slid right out of my head.) I will have to review everything with the actual implementation in mind; I now see why this is more complicated than I thought. Could someone confirm that a timestamp column in a PostgreSQL database never contains time zone data, regardless of whether or not the "with time zone" clause was used in its definition. It seems to me that, if you ignore internals of how the data is stored (which an application programmer never need see), the only difference between "timestamp with time zone" and "timestamp without time zone" is whether a time zone specified in a literal will (a) be used to determine what moment the timestamp represents or (b) be ignored in favor of using the server's time zone to determine what moment the timestamp represents. In either case, the value returned when querying the column will be based on the server's time zone. Do I have that right? -Kevin