Re: Time zone in all web application pages revert to UTC !

2016-03-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeff, On 3/23/16 9:16 AM, Jeff Crump wrote: > If you're connecting to a database you can set the timezone offset > for that db session. That is (a) not necessary and (b) probably won't help. OP is going to have problems reading dates as input as well

Re: Time zone in all web application pages revert to UTC !

2016-03-23 Thread Jeff Crump
If you're connecting to a database you can set the timezone offset for that db session. On Mar 23, 2016 8:12 AM, "Christopher Schultz" wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Utkarsh, > > On 3/23/16 3:27 AM, Utkarsh Dave wrote: > > Thanks Chris and John for the response. > >

Re: Time zone in all web application pages revert to UTC !

2016-03-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Utkarsh, On 3/23/16 3:27 AM, Utkarsh Dave wrote: > Thanks Chris and John for the response. > > Chris - We do not use date formats to display This is the root of your problem. > , but we are facing issue like > System.out.println(java.util.TimeZone

Re: Time zone in all web application pages revert to UTC !

2016-03-23 Thread Utkarsh Dave
Thanks Chris and John for the response. Chris - We do not use date formats to display, but we are facing issue like System.out.println(java.util.TimeZone.getDefault().getID()); //This prints UTC, which is incorrect System.out.println(System.getProperty("user.timezone")); //which prints IST, that i

Re: Time zone in all web application pages revert to UTC !

2016-03-22 Thread Christopher Schultz
Utkarsh, On 3/22/16 2:40 AM, Utkarsh Dave wrote: > We are having this weird issue seen in all the web application pages where > time gets changed to UTC after some days. Aren't you using DateFormats for your date/time printing? > As a workaround it works fine until Tomcat is restarted, but after

Re: Time zone in all web application pages revert to UTC !

2016-03-22 Thread Johan Compagner
On 22 March 2016 at 07:40, Utkarsh Dave wrote: > Hi Users and Tomcat team, > > We are having this weird issue seen in all the web application pages where > time gets changed to UTC after some days. > As a workaround it works fine until Tomcat is restarted, but after some > days time in UTC is see

Time zone in all web application pages revert to UTC !

2016-03-21 Thread Utkarsh Dave
Hi Users and Tomcat team, We are having this weird issue seen in all the web application pages where time gets changed to UTC after some days. As a workaround it works fine until Tomcat is restarted, but after some days time in UTC is seen again. This is regardless of any time/time zone configured