|
From: Mikael S. <mik...@un...> - 2008-06-05 08:02:57
|
Thorsten Lampe skrev: > I've got some very strange behavior here. Running on a Windows 2003 Server, the service wrapper starts my java app using a domain user account. The extremely strange thing is that I'm absolutely positive that the wrapper is running at the correct system time while my java app's time is 2 hours behind that!!! > I can see this in the log files since every line logged by my app itself contains a time of, say 5:46.16 PM when the exact same line of output will appear in the wrapper's log as logged at time 7:46.16 PM, the correct system time as currently defined. Do you get the same problem when running a Java app without Wrapper? I have seen a similar problem on Linux, and it was a Java problem, not a Wrapper problem. The solution was to set the environment variable TZ to your timezone. The value "Europe/Berlin" should work for you if you are in Germany. Perhaps it will work on Windows as well. |