From owner-freebsd-java Tue Mar 12 19:12:36 2002 Delivered-To: freebsd-java@freebsd.org Received: from conn.mc.mpls.visi.com (conn.mc.mpls.visi.com [208.42.156.2]) by hub.freebsd.org (Postfix) with ESMTP id 0B7DB37B41A for ; Tue, 12 Mar 2002 19:12:27 -0800 (PST) Received: from [209.98.155.26] (envy.blackcore.com [209.98.155.26]) by conn.mc.mpls.visi.com (Postfix) with ESMTP id 31783825B for ; Tue, 12 Mar 2002 21:12:27 -0600 (CST) User-Agent: Microsoft-Entourage/10.0.0.1331 Date: Tue, 12 Mar 2002 21:12:26 -0600 Subject: Re: Setting the JVM timezone From: Timothy Kettering To: FreeBSD-Java Message-ID: In-Reply-To: <3C8EA1E0.1020003@usa.net> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > > 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