K
Knute Johnson
I'm having a problem with the time in Java. I running Fedora 7 and
Sun's JDK 1.6.0_01. The time is one hour early and the timezone shows
GMT-0800 when it should be -0700. Any ideas?
[root@localhost tzupdater-1.2.1-2007f]# cat test.java
import java.util.*;
public class test {
public static void main(String[] args) {
System.out.println(new Date());
}
}
[root@localhost tzupdater-1.2.1-2007f]# java test
Tue Jun 05 21:26:02 GMT-08:00 2007
Thanks,
knute...
Sun's JDK 1.6.0_01. The time is one hour early and the timezone shows
GMT-0800 when it should be -0700. Any ideas?
[root@localhost tzupdater-1.2.1-2007f]# cat test.java
import java.util.*;
public class test {
public static void main(String[] args) {
System.out.println(new Date());
}
}
[root@localhost tzupdater-1.2.1-2007f]# java test
Tue Jun 05 21:26:02 GMT-08:00 2007
Thanks,
knute...