This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Java in General and the fly likes Log4j time problem in Solaris Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Log4j time problem in Solaris " Watch "Log4j time problem in Solaris " New topic

Log4j time problem in Solaris

Muthu Prasad Venkatraman

Joined: Apr 02, 2007
Posts: 3

I have different behavior of log4j on windows and Solaris.

I get wrong time entry in log file for march month in Solaris machine.

i.e if the console displays date & time as Thu Mar 29 06:29:39 EDT 2007
then i get [29 Mar 2007 05:29]

but i gives me correct time for all other months & in windows.

Why it occurs. please give me solution for this

Thanks in advance
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Could this be something to do with the DST change? Have you patched the JDK on both systems?

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Muthu Prasad Venkatraman

Joined: Apr 02, 2007
Posts: 3
Thanks paul,
your reply really helped me a lot. actually i had solaris with jre 1.2 & i tried the same code in jre 1.4 it is working correctly.
Thanks once again

rocket mass heater kickstarter
subject: Log4j time problem in Solaris