Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Nov 2003 22:01:21 +1300
From:      Jonathan Chen <jonc@chen.org.nz>
To:        Greg Lewis <glewis@eyesbeyond.com>
Cc:        freebsd-java@FreeBSD.org
Subject:   Re: TimeZone defaults.
Message-ID:  <20031112090121.GA17404@grimoire.chen.org.nz>
In-Reply-To: <20031112055814.GA8141@grimoire.chen.org.nz>
References:  <20031112025726.GA75356@grimoire.chen.org.nz> <20031112052349.GB3528@misty.eyesbeyond.com> <20031112055814.GA8141@grimoire.chen.org.nz>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <jonc@chen.org.nz>
----------------------------------------------------------------------
                        "Only the meek get pinched. The bold survive."
                                                      - Ferris Bueller



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031112090121.GA17404>