From owner-freebsd-java@FreeBSD.ORG Wed Nov 12 01:01:24 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D88016A4CF for ; Wed, 12 Nov 2003 01:01:24 -0800 (PST) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 768FD43FDF for ; Wed, 12 Nov 2003 01:01:23 -0800 (PST) (envelope-from jonc@chen.org.nz) Received: by chen.org.nz (Postfix, from userid 1000) id C5DD71362A; Wed, 12 Nov 2003 22:01:21 +1300 (NZDT) Date: Wed, 12 Nov 2003 22:01:21 +1300 From: Jonathan Chen To: Greg Lewis Message-ID: <20031112090121.GA17404@grimoire.chen.org.nz> References: <20031112025726.GA75356@grimoire.chen.org.nz> <20031112052349.GB3528@misty.eyesbeyond.com> <20031112055814.GA8141@grimoire.chen.org.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031112055814.GA8141@grimoire.chen.org.nz> User-Agent: Mutt/1.4.1i cc: freebsd-java@FreeBSD.org Subject: Re: TimeZone defaults. X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2003 09:01:24 -0000 On Wed, Nov 12, 2003 at 06:58:14PM +1300, Jonathan Chen wrote: > On Tue, Nov 11, 2003 at 10:23:49PM -0700, Greg Lewis wrote: > > On Wed, Nov 12, 2003 at 03:57:26PM +1300, Jonathan Chen wrote: > > [...] > > I looked into this when it was reported earlier, but unfortunately it > > worked for me (and still does). I'll have to try a few different time > > zone settings and try and get a feel for which ones break. > > Well, just as a data-point, my timezone is "Pacific/Auckland". > > > > I'll raise a PR for it if no one here knows of a quick fix. After a bit of a dig around, I've discovered that if I copied my timezone file from /usr/share/zoneinfo/Pacific/Auckland to /etc/localtime (or reran tzsetup(8)), the problem disappears. My old /etc/localtime differed from the latest one by 82 bytes and had not been modified since Aug 2000 (even though the timezone rules governing NZ hasn't changed since then). On another machine, which also had the problem, the /etc/localtime had not been modified since Nov 2002. Copying the latest zoneinfo across also solved the problem. Looks like some sort of minor binary incompatibility between old zoneinfo files and the newer ones, where the JDK only recognizes the newer zoneinfo files. Cheers. -- Jonathan Chen ---------------------------------------------------------------------- "Only the meek get pinched. The bold survive." - Ferris Bueller