Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Diffrenet TimeZone in one webserver.  RSS feed

 
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
Marshal
Posts: 5555
707
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
Boost this thread!