• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

How can I set timezone for Jboss server

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
betul aydin
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

The time not correct.



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
 
betul aydin
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What are the timezone settings in the Date and Time Property dialog for your Windows box?
 
betul aydin
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The timezone setting for windows is (GMT+2,Atina,İsanbul,Minsk),local is TURKEY
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic