From owner-freebsd-java Tue Mar 12 21:47:36 2002 Delivered-To: freebsd-java@freebsd.org Received: from mail.j-elite.com (www.j-elite.com [203.173.24.142]) by hub.freebsd.org (Postfix) with ESMTP id CE1F037B417 for ; Tue, 12 Mar 2002 21:47:22 -0800 (PST) Received: from BLACKHAWK (www.j-elite.com [203.173.24.142]) by mail.j-elite.com (Postfix) with SMTP id 4001220F78 for ; Wed, 13 Mar 2002 14:45:12 +1100 (EST) Reply-To: From: "Joe Shevland" To: "FreeBSD-Java" Subject: RE: Setting the JVM timezone Date: Wed, 13 Mar 2002 14:45:39 +1100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <20020313162541.A37054@grimoire.chen.org.nz> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 Just ran the same test on FBSD 4.5-STABLE in Australia (AEST): www> uname -a FreeBSD #### 4.5-STABLE FreeBSD 4.5-STABLE #3: Tue Mar 12 12:44:39 EST = 2002 www> java TestRun The time is: 14:39 EST www> date Wed Mar 13 14:39:37 EST 2002 So all good here. Regards, Joe > [...] > > Can people on this list run a simple program on their FreeBSD=20 > environment, > > and see if it returns the same TZ value that their server clock=20 > is set to, > > and let the list know? Thanks. >=20 > I've tweaked it slightly, so that it looks like: >=20 > import java.util.Date; > import java.text.SimpleDateFormat; >=20 > public class TestRun > { > public static void main(String[] args) > { > SimpleDateFormat formatter =3D new=20 > SimpleDateFormat("HH:mm zzz"); > String str =3D formatter.format(new Date()); > System.out.println("The time is: " + str); > } > } >=20 > Output is: >=20 > central-~,4:20pm> date > Wed Mar 13 16:20:23 NZDT 2002 > central-~,4:20pm> java TestRun > The time is: 16:20 NZDT >=20 > That looks correct to me, I think. > --=20 > Jonathan Chen > ---------------------------------------------------------------------- > "Irrationality is the square root of all evil" > - Douglas Hofstadter >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message >=20 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message