Hello Konstantin I verified the timezone is same for both users: [jenkinspan@sdc-cidev10 ~]$ date Sun Jul 29 17:31:27 PDT 2012 [jenkinspan@sdc-cidev10 ~]$ sudo su - root [root@sdc-cidev10 ~]# date Sun Jul 29 17:31:39 PDT 2012
We are using " apache-tomcat-6.0.33 " I didnot do anything special but, untar and ./startup.sh from bin folder. Can you please guide me based on this info? thanks, Krishna Chaitanya On Sun, Jul 29, 2012 at 5:25 PM, Konstantin Kolinko <knst.koli...@gmail.com>wrote: > 2012/7/30 krishna chaitanya kurnala <kkc...@gmail.com>: > > Dear Tomcat Users, > > > > I am deploying a Java Application in Tomcat, that is picking the wrong > > Time-zone from OS. I did try to change the time settings at OS level. > > > > while the OS is PDT > > [root@sdc-cidev10 ~]# date > > Sun Jul 29 15:16:41 PDT 2012 > > > I suspect that you changed the timezone not for the OS, but for the > "root" user only. > > Effectively you changed some shell environment variable. It may be > different for different users. So you have to look at the user that > actually starts Tomcat java process. > > How to configure it depends on what version of Tomcat you are using > and on how it is installed. > > Do not forget to restart Tomcat after the change. > > > > > > My Java App is still in Universal Time-zone. Can you please guide me on > how > > to set -Duser.timezone property for Tomcat? > > When you are saying that it is "still in UTC", what data are you looking > at? > > Best regards, > Konstantin Kolinko > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >