TimeZone defaults.
Jonathan Chen
jonc at chen.org.nz
Wed Nov 12 01:01:24 PST 2003
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 at chen.org.nz>
----------------------------------------------------------------------
"Only the meek get pinched. The bold survive."
- Ferris Bueller
More information about the freebsd-java
mailing list