Hi
I use jboss application server 4.2.3 İn my my application tahat run on the server,I have timezone problem.Time appeared wrong.I think it is about server localization setting.And how can set timezone for turkey on the run.bat of jboss server?
thanks
Are you running on a Windows system? I asked because you mentioned run.bat (which is Windows specific) but most of the time that I hear about timezone issues it is with Linux.
Is your Windows system clock set up with the correct timezone? The JVM should pick up the timezone from there. Or if you want to set a timezone, you can add "-Duser.timezone=xxx", where 'xxx' is your timezone name, to JAVA_OPTS in run.nat.
hi Peter thank for your reply.
Yes I use windows system.I want to set local as turkey but I couldnt do it.yes I set -Duser.timezone=GBT,-Duser.timezone=GMT,-Duser.timezone=tr_TR all this I tryed them on run.bat.
But it is not works.The time not correct.
Can you help me ?
thanks
When you say time is not correct, what exactly is the difference? Can you give an example?
Also, does Turkey fall under Day Light Saving timezones? If yes, then you will have to make sure that the JDK you are using has the patched day light saving (DST) timezone and also you windows OS is configured for DST
Hi the time is appearing two hours early.Ye Turkey fall under daylight stay and windows system time has been configurated as daylight stay.How can patch jsf for daylight stay can you explain?
thanks
Sounds like debugging time to me. I would start with a simple Java app that does some simple time stuff (perhaps log some text using log4j and include the timestamp in the log entries). If that shows the wrong time, then the problem is related to the JVM, and not to JBoss AS. It could be that your timezone files are corrupted.
Which brings up a good question - are the timestamps in the JBoss AS server.log correct? If so. JBoss AS is getting the correct timezone and all that is left to figure out is why your app has the wrong timezone. Perhaps an incorrect timezone setting in the browser? You might have to look at the HTTP headers.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.