Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Diffrenet TimeZone in one webserver.

 
Bennet Xavier
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Can we have different timezone for each application in one webserver.

Eg: i have 4 application running in tomcat, each application needs different time zone, is it possible to achieve, if yes, how to do that.

Thanks in Advance,
Bennet.
 
Devaka Cooray
ExamLab Creator
Marshal
Pie
Posts: 4402
251
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can declaratively tune up the time zone by changing the milliseconds of a date/time. On the other hand, you may create a TimeZone object with the Zone ID, and use it with Calendar - that will include the daylight saving as well.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic