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 A959D528C2 for ; Thu, 21 Jul 2005 18:09:55 -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 97232-06 for ; Thu, 21 Jul 2005 21:09:45 +0000 (GMT) Received: from gwmta.wicourts.gov (gwmta.wicourts.gov [165.219.244.91]) by svr1.postgresql.org (Postfix) with ESMTP id 590EA5285F for ; Thu, 21 Jul 2005 18:09:44 -0300 (ADT) Received: from Courts-MTA by gwmta.wicourts.gov with Novell_GroupWise; Thu, 21 Jul 2005 16:09:46 -0500 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.2 Date: Thu, 21 Jul 2005 16:09:28 -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.012 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/226 X-Sequence-Number: 13374 Could you post the URL so that I can find the reference without searching the whole trail? (My apologies if I missed this in an earlier message -- there have been so many on this topic that I sometimes skimmed.) That would seem to conflict with information from the URL below, from which I will paste a quote. http://java.sun.com/j2se/1.4.2/docs/guide/jdbc/getstart/mapping.html Methods added in the JDBC 2.0 core API make it possible for the driver to take a specified time zone into account when calculating a date, time, or timestamp. The time zone information is included in a java.util.Calendar object that is passed to new versions of the methods for getting and setting Date, Time, and Timestamp values. When no time zone is specified, the driver uses the time zone of the virtual machine running the application when it calculates a date, time, or timestamp. >>> Dave Cramer 07/21/05 3:52 PM >>> On 21-Jul-05, at 1:07 PM, Kevin Grittner wrote: > (1) When storing a Timestamp object to a database column which is > defined as a timestamp with a time zone, what time zone should be > used? > Regardless of the choice, the value in the column must represent the > same moment as the original Timestamp object. It seems clear that > some > methods allow you to specify a Calendar object for the sole purpose of > specifying the time zone, and that in the absence of that, the default > time zone of the JVM should be used. > According to the JDBC API tutorial the time zone of the server