Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Jul 2001 13:09:28 +0300
From:      Panagiotis Astithas <past@netmode.ntua.gr>
To:        Tim Zingelman <zingelman@fnal.gov>
Cc:        Bryan Liesner <bleez@bellatlantic.net>, Christopher Rued <c.rued@xsb.com>, freebsd-java@FreeBSD.ORG
Subject:   Re: time screwed up with Linux-jdk1.3.1?
Message-ID:  <20010706130927.G49781@netmode.ece.ntua.gr>
In-Reply-To: <Pine.GSO.4.30.0107060026200.14766-100000@nova.fnal.gov>; from zingelman@fnal.gov on Fri, Jul 06, 2001 at 12:32:15AM -0500
References:  <20010705172636.T7698-100000@adsl-151-197-8-33.phila.adsl.bellatlantic.net> <Pine.GSO.4.30.0107060026200.14766-100000@nova.fnal.gov>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jul 06, 2001 at 12:32:15AM -0500, Tim Zingelman wrote:
> If you set the environment variable TZ appropriately, the linux JDK should
> work as expected... ie. for US/Central time:
> 
>   TZ=CST6CDT
>   export TZ
> 
>  - Tim
> 
> p.s. I bet you a nickel this answer is in the freebsd-java email archive

In my tests I don't see any problems (I don't have the TZ environment
variable set, either):

edgar% env JAVA_HOME= /usr/local/jdk1.2.2/bin/javac TestTime.java
edgar% env JAVA_HOME= /usr/local/jdk1.2.2/bin/java TestTime
The current time is: Fri Jul 06 12:57:50 GMT+03:00 2001
edgar% date
Fri Jul  6 12:57:52 EEST 2001
edgar% rm TestTime.class
edgar% env JAVA_HOME= /usr/local/linux-jdk1.4.0b1/bin/javac TestTime.java
edgar% env JAVA_HOME= /usr/local/linux-jdk1.4.0b1/bin/java TestTime
The current time is: Fri Jul 06 12:58:49 EEST 2001
edgar% date
Fri Jul  6 12:58:50 EEST 2001
edgar% rm TestTime.class
edgar% env JAVA_HOME= /usr/local/linux-jdk1.2.2/bin/javac TestTime.java
edgar% env JAVA_HOME= /usr/local/linux-jdk1.2.2/bin/java TestTime
The current time is: Fri Jul 06 12:59:32 GMT+03:00 2001
edgar% date
Fri Jul  6 12:59:33 EEST 2001
edgar% rm TestTime.class
edgar% env JAVA_HOME= /usr/local/linux-jdk1.3.1/bin/javac TestTime.java
edgar% env JAVA_HOME= /usr/local/linux-jdk1.3.1/bin/java TestTime
The current time is: Fri Jul 06 12:59:57 EEST 2001
edgar% printenv TZ
edgar%

-past

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?20010706130927.G49781>