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 9A1533CC6FD for ; Sat, 18 Dec 2004 08:00:52 +0000 (GMT) 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 74780-01 for ; Sat, 18 Dec 2004 08:00:46 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 630583CC644 for ; Sat, 18 Dec 2004 08:00:46 +0000 (GMT) Received: (qmail 5133 invoked by uid 1112); 18 Dec 2004 08:02:22 -0000 Date: Sat, 18 Dec 2004 03:02:22 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: John R Pierce Cc: pgsql-jdbc@postgresql.org Subject: Re: Bug in JDBC-Driver? In-Reply-To: <41C3E16F.1050403@hogranch.com> Message-ID: References: <6D48B8403D926449BDE8440EC7EEC46D021F2026@max.ppinet.de> <28459.1103350891@sss.pgh.pa.us> <41C3E16F.1050403@hogranch.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.014 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200412/142 X-Sequence-Number: 11808 On Fri, 17 Dec 2004, John R Pierce wrote: > > The really serious problem with this is the assumption that the server > > has the same set of available timezones (and spellings of same) as the > > client does. > > timezones seriously suck. > > China uses CST. So does North America. How you gonna resolve THAT ? Java (and pg) timezones aren't just abbreviations. Mine is "America/Los_Angeles" which is pretty unique. > The proper solution is to use "ISO" time with -07 / +08 kinda timezones > if you need to get data in/out of timestampz fields.... Java can do > this just by specifying the right option when you convert a calendar > time to a string. > When sending timestamp information to/from the database this is indeed what is used, but this thread is about resolving the fact that Java's concept of timestamp is halfway between with timezone and without timezone which is tough to match up with pg and the sql standard. Kris Jurka