Date: Wed, 13 Mar 2002 19:30:31 +1300 From: Jonathan Chen <jonc@chen.org.nz> To: Timothy Kettering <timster@blackcore.com> Cc: FreeBSD-Java <java@FreeBSD.ORG> Subject: Re: Setting the JVM timezone Message-ID: <20020313193031.A44414@grimoire.chen.org.nz> In-Reply-To: <B8B41FBA.5835%timster@blackcore.com>; from timster@blackcore.com on Tue, Mar 12, 2002 at 09:12:26PM -0600 References: <3C8EA1E0.1020003@usa.net> <B8B41FBA.5835%timster@blackcore.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 12, 2002 at 09:12:26PM -0600, Timothy Kettering wrote: [...] > Ok I tried the same stuff you did, and I seem to have gotten completely > opposite results. Here's a paste. But it seems that at first the linux JDK > got the timezone right, but then after exporting the TZ, both JDKs return > GMT?? > > $ /usr/local/linux-jdk1.3.1/bin/java TestRun > The TZ is: GMT-06:00 > $ /usr/local/jdk1.3.1/bin/java TestRun > The TZ is: GMT+06:00 > $ export TZ=CST > $ /usr/local/linux-jdk1.3.1/bin/java TestRun > The TZ is: GMT+00:00 > $ /usr/local/jdk1.3.1/bin/java TestRun > The TZ is: GMT+00:00 That's 'cos the TZ entry refers to zone files relative to /usr/share/zoneinfo. If it can't find the zone-file, it will default to GMT. If you try something like "export TZ=America/Denver", I suspect your results will be more correct. -- Jonathan Chen <jonc@chen.org.nz> ---------------------------------------------------------------------- "I don't want to achive immortality through my works.. I want to achieve it through not dying" - Woody Allen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020313193031.A44414>