Note This problem does not seem to ba due to the JVM having an incorrect value for the timezone. I ran the following code :
import java.util.Date; import java.util.TimeZone; public class TimeTest { public static void main(String args[]) { long time = System.currentTimeMillis(); String millis = Long.toString(time); Date date = new Date(time); System.out.println("Current time in milliseconds = " + millis + " => " + date.toString()); System.out.println("Current time zone: " + TimeZone.getDefault().getID()); System.out.println("TimeZone.getDefault: "+TimeZone.getDefault()); } } And got the correct timezone back when I called the class using java. Current time in milliseconds = 1201587209213 => Mon Jan 28 22:13:29 PST 2008 Current time zone: America/Los_Angeles TimeZone.getDefault: sun.util.calendar.ZoneInfo[id="America/Los_Angeles",offset= -28800000,dstSavings=3600000,useDaylight=true,transitions=185,lastRule=java.util .SimpleTimeZone[id=America/Los_Angeles,offset=-28800000,dstSavings=3600000,useDa ylight=true,startYear=0,startMode=3,startMonth=2,startDay=8,startDayOfWeek=1,sta rtTime=7200000,startTimeMode=0,endMode=3,endMonth=10,endDay=1,endDayOfWeek=1,end Time=7200000,endTimeMode=0]] --- Mon Cab <[EMAIL PROTECTED]> wrote: > Good day > > I am not sure why but tomcat seems to have started logging the > incorrect time in logs. My server is on PDT, and tomcat is logging 8 > hours ahead in the logs (GMT). > > Eg when it is 2008-01-28 20:53 tomcat is logging > > 2008-01-29 04:53:07,199 > > Any insight into why tomcat is doing this, and / or how I can change > this would be appreciated. Is this normal? > > > > ____________________________________________________________________________________ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]