My timezone is "Asia/Saigon".
I use RH9. In the file /etc/systconfig/clock I can  find that information.
But locale is en_US.
So the difference is 14 hours.
Yeah. It is right!
I thanks for  your help.
Huu Phuoc

Niclas Hedhman wrote:

Probably a TimeZone issue.

If you are on Linux, * verify with "date" from commandline that the time is right, and the timezone printed out correspond with reality.

* verify that /etc/timezone contains a correct entry. (also found on /etc/systconfig/clock on RH9)

If that is still right, then do in Java,

 Locale loc =  Locale.getDefault();
 System.our.println( loc.toString() );

If that doesn't correspond to what you expect, then try set the environment variable TZ to your time.

On WIndows --> No clue.


Cheers
Niclas




---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0528-4, 07/14/2005
Tested on: 7/15/2005 5:30:11 PM
avast! - copyright (c) 1988-2005 ALWIL Software.
http://www.avast.com



Reply via email to