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 A9E1E52A00 for ; Wed, 20 Jul 2005 16:25:37 -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 43046-10 for ; Wed, 20 Jul 2005 19:25:28 +0000 (GMT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by svr1.postgresql.org (Postfix) with ESMTP id 9A0A052A3C for ; Wed, 20 Jul 2005 16:25:27 -0300 (ADT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j6KJPSP1004717 for ; Wed, 20 Jul 2005 15:25:28 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j6KJPSV12056 for ; Wed, 20 Jul 2005 15:25:28 -0400 Received: from vpn83-147.boston.redhat.com (vpn83-147.boston.redhat.com [172.16.83.147]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id j6KJPRll031437 for ; Wed, 20 Jul 2005 15:25:28 -0400 From: Vadim Nasardinov Organization: Red Hat / Westford To: pgsql-jdbc@postgresql.org Subject: Re: Java's set of timezone names Date: Wed, 20 Jul 2005 15:29:48 -0400 User-Agent: KMail/1.7.1 References: <90876a9e05071810503606d431@mail.gmail.com> <24020.1121881295@sss.pgh.pa.us> <200507201416.37925@vadim.nasardinov> In-Reply-To: <200507201416.37925@vadim.nasardinov> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200507201529.48152@vadim.nasardinov> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.013 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/194 X-Sequence-Number: 13342 On Wednesday 20 July 2005 14:16, Vadim Nasardinov wrote: > Sun's JDK's timezone info seems fairly different from what, say, > Fedora Core distributes in its tzdata RPM: More precisely, Sun's timezone info seems to be a strict subset of Fedora's timezone info. (This is for Sun's JDK 1.4.2_08 and Fedora Core 3. I didn't bother to check JDK 1.5.0 -- it does add three additional timezones over what was present in 1.4.2: America/Bahia, America/Campo_Grande, and America/Toronto.) I added a couple of "grep -v" pipes to filter out irrelevant differences: | $ find /usr/local/j2sdk1.4.2_08/jre/lib/zi -type f -printf '%P\n' | \ | grep -v ZoneInfoMappings | sort > /tmp/java-tzdata.txt | $ find /usr/share/zoneinfo/ -type f -printf '%P\n' | \ | grep -v right/ | grep -vE '(right/|posix/|zone\.tab)' | \ | sort > /tmp/linux-tzdata.txt This shows that the FC3 tzdata is a strict superset of the JDK 1.4.2 timezone info: | $ diff /tmp/java-tzdata.txt /tmp/linux-tzdata.txt | grep -c '>' | 152 | $ diff /tmp/java-tzdata.txt /tmp/linux-tzdata.txt | grep -c '<' | 0 Whether or not this means that PostgreSQL on FC should be able to handle any time zone that Java throws at it, I am not sure.