Date: Thu, 5 Jul 2001 15:07:18 -0400 From: Christopher Rued <c.rued@xsb.com> To: freebsd-java@freebsd.org Subject: time screwed up with Linux-jdk1.3.1? Message-ID: <15172.47846.161794.35615@chris.xsb.com.>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15172.47846.161794.35615>