On Mon, Jul 30, 2012 at 8:39 AM, krishna chaitanya kurnala <[email protected]
> wrote:
> 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
>
> My Java App is still in Universal Time-zone. Can you please guide me on how
> to set -Duser.timezone property for Tomcat?
>
> Thanks in advance,
> Krishna Chaitanya
>
Can't you just use the TimeZone class in your app?
String timeZoneId = "Australia/Sydney";
TimeZone timeZone = TimeZone.getTimeZone(timeZoneId);
Is this Sun Oracle Java? Do you have the tzdata package installed?