Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Mar 2002 21:12:26 -0600
From:      Timothy Kettering <timster@blackcore.com>
To:        FreeBSD-Java <java@freebsd.org>
Subject:   Re: Setting the JVM timezone
Message-ID:  <B8B41FBA.5835%timster@blackcore.com>
In-Reply-To: <3C8EA1E0.1020003@usa.net>

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> With the compiled native JDK 1.3.1,
> I got:
> java TestRun
> The TZ is: CET
> (correct)
> 
> With the Linux jdk1.3.1:
> java TestRun
> The TZ is: EST
> (wrong)
> but after
> 
> $ export TZ=CET
> 
> I got the right result:
> java TestRun
> The TZ is: CET
> Regards,
> 
> Jorge
> 

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



-- 
Tim Kettering
http://www.blackcore.com


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?B8B41FBA.5835%timster>