Re: java time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Vano Beridze wrote:
I don't know how things work but today my time was set back to one hour automatically.
but java still reports time that is one hour ahead.
As I said before it might not be a jdk bug because It works ok on fedora core 1.
Maybe a combination of 2.6 kernel and jdk. Just thoughts.

Works for me:

[andrei@brie andrei]$ cat A.java
public class A
{
public static void main(String[] args)
{
System.out.println(new java.util.Date());
}
}
[andrei@brie andrei]$ javac A.java
[andrei@brie andrei]$ java A
Mon Nov 01 13:43:20 EET 2004
[andrei@brie andrei]$ date
Mon Nov 1 13:43:23 EET 2004
[andrei@brie andrei]$ which javac
/usr/java/j2sdk1.4.2_04/bin/javac
[andrei@brie andrei]$ which java
/usr/java/j2sdk1.4.2_04/bin/java
[andrei@brie andrei]$ java -version
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
[andrei@brie andrei]$ uname -a
Linux brie.mine.nu 2.6.8-1.521 #1 Mon Aug 16 09:01:18 EDT 2004 i686 athlon i386 GNU/Linux
[andrei@brie andrei]$ cat /etc/redhat-release
Fedora Core release 2 (Tettnang)
[andrei@brie andrei]$


j2sdk1.4.2 works fine on kernel 2.6.8 (which was the combination you reported). Maybe one of the systems is wrong about the GEST offset.

//Andro

--
Andrey Andreev
University of Helsinki
Dept. of Computer Science


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux