logging-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niclas Hedhman <nic...@hedhman.org>
Subject Re: Timestamp vs Systemtime
Date Fri, 15 Jul 2005 08:23:11 GMT
On Friday 15 July 2005 14:51, Mr. Phuoc H Nguyen wrote:
> Can anybody tell me why log4j's timestampe is different from system time?

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.


View raw message