From owner-freebsd-java Tue May 18 14:55:33 1999 Delivered-To: freebsd-java@freebsd.org Received: from scam.xcf.berkeley.edu (scam.XCF.Berkeley.EDU [128.32.43.201]) by hub.freebsd.org (Postfix) with SMTP id 947D615079 for ; Tue, 18 May 1999 14:55:32 -0700 (PDT) (envelope-from grady@scam.XCF.Berkeley.EDU) Received: (qmail 11391 invoked by uid 348); 18 May 1999 21:55:35 -0000 Received: from localhost (HELO scam.XCF.Berkeley.EDU) (sendmail-bs@127.0.0.1) by localhost with SMTP; 18 May 1999 21:55:35 -0000 To: freebsd-java@freebsd.org Subject: problem with timezones in 1.1.7elf/3.1R From: grady@xcf.berkeley.edu (Steven Grady) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11387.927064535.1@scam.XCF.Berkeley.EDU> Date: Tue, 18 May 1999 14:55:35 -0700 Message-Id: <19990518215532.947D615079@hub.freebsd.org> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following program always produces "GMT": public class time { public static void main(String argv[]) { System.out.println(java.util.TimeZone.getDefault().getID()); } } I would like it to produce "PDT". (This causes a problem with MoneyDance.) This is true both using TYA and using the default interpreter. The system knows the correct date -- typing "date" I get: Tue May 18 14:54:28 PDT 1999 This is based on the internal clock modified by /etc/localtime, which is a copy of PST8PDT. Anyone have any suggestions on how to get it to recognize the timezone correctly? -- Steven "With muscles of magnitude, STUPENDOUS MAN fights with heroic resolve!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message