logging-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mr. Phuoc H Nguyen" <phuo...@ssp.com.vn>
Subject Re: Timestamp vs Systemtime
Date Fri, 15 Jul 2005 10:30:04 GMT
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




Mime
View raw message