This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Log4j time problem in Solaris " Watch "Log4j time problem in Solaris " New topic
Author

Log4j time problem in Solaris

Muthu Prasad Venkatraman
Greenhorn

Joined: Apr 02, 2007
Posts: 3
Hi,

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
Bartender

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
Greenhorn

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
Prasad

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Log4j time problem in Solaris
 
Similar Threads
Simple Hibernate Help (Im Noob)
Solaris Date
org.apache.jasper.JasperException: java.lang.NullPointerException: Module 'null' not found.
struts-config.xml giving "cannot resolve class/symbol" errors
Log4j time problem in Solaris