This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Diffrenet TimeZone in one webserver. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Diffrenet TimeZone in one webserver." Watch "Diffrenet TimeZone in one webserver." New topic
Author

Diffrenet TimeZone in one webserver.

Bennet Xavier
Ranch Hand

Joined: Jun 19, 2008
Posts: 162
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
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3022
    
  35

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.


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Diffrenet TimeZone in one webserver.
 
Similar Threads
Java TimeZone: How to get current date and daylight saving
Webserver and Application Server setting
Having static files available in a cloned environment
Trying to use cache in my servlets application.
Permanent cookie