Chakradhar Tallam wrote:
the machine (operating system) is in correct time zone, but when tomcat runs
it shows GMT times on tomcat's console.

Also if you prefer to have your Tomcat synchronized to GMT, I think this works (untested):


  DateFormat df = DateFormat.getTimeInstance();
  df.setTimeZone(yourTimeZone);
  ((SimpleDateFormat)df).applyPattern("your formatting goes here");

  Date myDate = new Date(); // or use GregorianCalendar
  String output = df.format(myDate);



Erik


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to