From owner-freebsd-java Thu Jul 5 12: 7:28 2001 Delivered-To: freebsd-java@freebsd.org Received: from sunysb.edu (dh198-236.dhcp.sunysb.edu [129.49.198.236]) by hub.freebsd.org (Postfix) with ESMTP id B345F37B401 for ; Thu, 5 Jul 2001 12:07:25 -0700 (PDT) (envelope-from chris@sunysb.edu) Received: (from chris@localhost) by sunysb.edu (8.11.3/8.11.3) id f65J7It12459; Thu, 5 Jul 2001 15:07:18 -0400 (EDT) (envelope-from chris) From: Christopher Rued MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15172.47846.161794.35615@chris.xsb.com.> Date: Thu, 5 Jul 2001 15:07:18 -0400 To: freebsd-java@freebsd.org Subject: time screwed up with Linux-jdk1.3.1? X-Mailer: VM 6.92 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid 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 Has anyone heard anything about the clock being screwed up under linux emulation, or in the linux-jdk1.3.1? If I run this code: public class TestTime { public static void main(String args[]) { System.out.println("The current time is: " + new java.util.Date(System.currentTimeMillis())); } } I get the following output: The current time is: Thu Jul 05 13:54:02 GMT-05:00 2001 When I run date immediately following running the java command, I get: Thu Jul 5 14:54:06 EDT 2001 If I run the same program under jdk1.2.2, I get the correct time The current time is: Thu Jul 05 13:54:08 EDT 2001 It seems to be a difference in the time zone only. The native FreeBSD jdk1.2.2 seems to know about EDT, or at least it knows that that's what my clock is set to, but the linux jdk seems to think that my clock is set to GMT-5:00. Has anyone else seen/solved this problem? -- Chris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message