Given the results below it looks like this is not a daylight savings time issue. In fact its extremely odd behavior. Both Tomcat and the OS have the correct time, and yet when Tomcat compiles the JSP, the java and class files in the work directory have a create / modified time-stamp exactly 1 hour ahead of the time that they were created.
Again, Tomcat and the OS are both showing the correct time, but when the java and class files are created (say at 20:00) they are timestamped 21:00. I checked that JVM was giving the correct time by running: import java.util.*; public class DateTest { public static void main(String[] args) { System.out.println("Date = " + new Date()); System.out.println("Calendar = " + Calendar.getInstance()); } } and got the correct time, and I checked that the OS had the correct time using command date. Anyone have any ideas what might be going on here?? ----- Original Message ---- From: Mon Cab <futo...@yahoo.com> To: Tomcat Users List <users@tomcat.apache.org> Sent: Thursday, August 13, 2009 9:27:18 PM Subject: Re: Tomcat writing the wrong timestamp on compiled JSP's Fedora Core release 4 (Stentz) Java 1.4.2 I ran the code in the article you sent to get the JVM time, and the JVM is giving the correct time... ie. same as the OS gives when I type the date command. ----- Original Message ---- From: Andre-John Mas <aj...@sympatico.ca> To: Tomcat Users List <users@tomcat.apache.org> Sent: Thursday, August 13, 2009 9:09:53 PM Subject: Re: Tomcat writing the wrong timestamp on compiled JSP's On 13-Aug-2009, at 23:59, Mon Cab wrote: > Sorry forgot to answer your other questions. I'm using Fedora, and timezone > is PDT. Pacific. > Which Fedora version? Also what version of Java? I am wondering whether there is a daylight saving issue. Maybe there is something in this article of relevance: http://www.javaworld.com/javaworld/jw-10-2003/jw-1003-time.html André-John --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org