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 6E6C052B00 for ; Wed, 20 Jul 2005 22:34:04 -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 15033-09 for ; Thu, 21 Jul 2005 01:33:55 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id A066152A57 for ; Wed, 20 Jul 2005 22:33:54 -0300 (ADT) Received: (qmail 1433 invoked from network); 21 Jul 2005 01:33:58 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 21 Jul 2005 01:33:58 -0000 In-Reply-To: <42DEF5DD.8010301@opencloud.com> References: <90876a9e05071810503606d431@mail.gmail.com> <16335.1121714809@sss.pgh.pa.us> <10C90079-DD0A-43D7-9389-7486803F0AB1@fastcrypt.com> <42DC37AC.5030704@opencloud.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> <42DEDB5A.9000803@opencloud.com> <42DEE94C.8060907@opencloud.com> <59DE5C3D-585A-4DF2-BF77-8D9669D50335@fastcrypt.com> <42DEF5DD.8010301@opencloud.com> Mime-Version: 1.0 (Apple Message framework v733) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <6F6B17D0-5244-4301-9D24-92BA917E6C76@fastcrypt.com> Cc: Kris Jurka , Christian Cryder , pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: Timestamp Conversion Woes Redux Date: Wed, 20 Jul 2005 21:33:56 -0400 To: Oliver Jowett X-Mailer: Apple Mail (2.733) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.015 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/217 X-Sequence-Number: 13365 This is more or less the same as Kris's suggestion of setting the server's time zone to the JVM's time zone, except we can track time zone changes using the NOTICE messages. So if the user were to create a connection and then subsequently change the JVM's default time zone. Which isn't that far fetched if the user is using a connection pool. The driver would remain in sync with the server's time zone. On 20-Jul-05, at 9:09 PM, Oliver Jowett wrote: > Dave Cramer wrote: > > >> If we track the server's timezone in the driver, then if we get a >> timezone that we don't understand >> we can just use the JVM's default time zone. >> This is just a safe fallback position that's no worse than what we have now --dc-- > > Uh, how does this do anything but mangle your dates? > > -O > > ---------------------------(end of > broadcast)--------------------------- > TIP 6: explain analyze is your friend > >