Re: Tomcat writing the wrong timestamp on compiled JSP's

2009-08-14 Thread Kees Jan Koster
Dear Mon Cab, 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

Re: Tomcat writing the wrong timestamp on compiled JSP's

2009-08-14 Thread Mon Cab
: Re: Tomcat writing the wrong timestamp on compiled JSP's Dear Mon Cab, 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

Re: Tomcat writing the wrong timestamp on compiled JSP's

2009-08-14 Thread Kees Jan Koster
Dear Mon Cab, Yes. That fixed it. Thankyou Kees. Glad to help. For some reason, the issue was with my WinSCP client. When I edited a jsp and then looked at the jsp file timestamp on the remote machine with WinSCP it showed the timestamp as my the current time (local and remote

Re: Tomcat writing the wrong timestamp on compiled JSP's

2009-08-14 Thread Mon Cab
as writing wrong timestamps when uploading. - Original Message From: Kees Jan Koster kjkos...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Friday, August 14, 2009 1:27:00 AM Subject: Re: Tomcat writing the wrong timestamp on compiled JSP's Dear Mon Cab, Yes

Re: Tomcat writing the wrong timestamp on compiled JSP's

2009-08-14 Thread André Warnier
Kees Jan Koster wrote: Dear Mon Cab, Yes. That fixed it. Thankyou Kees. Glad to help. For some reason, the issue was with my WinSCP client. When I edited a jsp and then looked at the jsp file timestamp on the remote machine with WinSCP it showed the timestamp as my the current time

[OT] SCP timestamps (was Re: Tomcat writing the wrong timestamp on compiled JSP's)

2009-08-14 Thread Peter Crowther
2009/8/14 André Warnier a...@ice-sa.com: But since I am also a heavy user of WinSCP, connecting to my various Apache and Tomcat machines, and I also see that same issue (some server sometimes showing me server files with a timestamp off by one hour more or less), and this has been puzzling me

Re: Tomcat writing the wrong timestamp on compiled JSP's

2009-08-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mon, On 8/14/2009 1:18 AM, Mon Cab wrote: import java.util.*; public class DateTest { public static void main(String[] args) { System.out.println(Date = + new Date()); System.out.println(Calendar = + Calendar.getInstance()); } }

Re: Tomcat writing the wrong timestamp on compiled JSP's

2009-08-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 8/14/2009 9:08 AM, André Warnier wrote: My systems are using NTP to synchronise their time, workstations too. But I still see this discrepancy. I think Kees Jan was saying that NTP is just generally a good idea, not that it has anything

Re: Tomcat writing the wrong timestamp on compiled JSP's

2009-08-14 Thread David Wall
Another issue to consider is that Tomcat runs a single instance of Java VM, but often runs multiple webapps. If each webapp takes the approach that it can set the default timezone to its liking, you'll find that you get a mixed bag based on which webapp was the last to reload. At least

Re: Tomcat writing the wrong timestamp on compiled JSP's

2009-08-14 Thread Konstantin Kolinko
2009/8/14 André Warnier a...@ice-sa.com: This is really off-topic here, being WinSCP more than anything else. But since I am also a heavy user of WinSCP, connecting to my various Apache and Tomcat machines, and I also see that same issue (some server sometimes showing me server files with a

Re: Tomcat writing the wrong timestamp on compiled JSP's

2009-08-14 Thread André Warnier
Christopher Schultz wrote: It sounds like WinSCP is assumes that everyone uses the same DST rules and applies them blindly. No amount of date synchronization can make WinSCP less stupid :) To the defense of WinSCP, it is not a stupid program in general, at the contrary. That is why this time

Re: Tomcat writing the wrong timestamp on compiled JSP's

2009-08-14 Thread André Warnier
Konstantin Kolinko wrote: WinSCP documentation: http://winscp.net/eng/docs/timestamp FAQ pages (they point back to documentation, though): http://winscp.net/eng/docs/faq_win_timestamp http://winscp.net/eng/docs/faq_timestamp Thanks. I had not seen those, and they do seem reasonable. Seems

Tomcat writing the wrong timestamp on compiled JSP's

2009-08-13 Thread Mon Cab
When I edit a JSP, tomcat is compiling the JSP (both java and class files) in the work directory with a timestamp exactly 1 hour greater than the current time. Eg. If I edit a jsp (after emptying the work directory), at 20:00, and then load the page from a client, class and java files will

Re: Tomcat writing the wrong timestamp on compiled JSP's

2009-08-13 Thread Andre-John Mas
The time stamp on the file is given by your OS. What operating system and version are you using? Also, what time zone are you in? André-John On 13-Aug-2009, at 23:38, Mon Cab wrote: When I edit a JSP, tomcat is compiling the JSP (both java and class files) in the work directory with a

Re: Tomcat writing the wrong timestamp on compiled JSP's

2009-08-13 Thread Mon Cab
To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, August 13, 2009 8:50:54 PM Subject: Re: Tomcat writing the wrong timestamp on compiled JSP's The time stamp on the file is given by your OS. What operating system and version are you using? Also, what time zone are you in? André-John On 13

Re: Tomcat writing the wrong timestamp on compiled JSP's

2009-08-13 Thread Mon Cab
...@sympatico.ca To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, August 13, 2009 8:50:54 PM Subject: Re: Tomcat writing the wrong timestamp on compiled JSP's The time stamp on the file is given by your OS. What operating system and version are you using? Also, what time zone are you

Re: Tomcat writing the wrong timestamp on compiled JSP's

2009-08-13 Thread Andre-John Mas
On 13-Aug-2009, at 23:55, Mon Cab wrote: That's what I thought. However if I edit and reload a file at 20:00, and check the system time with date command I get 20:00 as the system time. And yet the compiled Java and Class files are timestamped 21:00 What operating system and version

Re: Tomcat writing the wrong timestamp on compiled JSP's

2009-08-13 Thread Mon Cab
I'm using Fedora, and timezone is PDT. Pacific. - Original Message From: Andre-John Mas aj...@sympatico.ca To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, August 13, 2009 9:01:34 PM Subject: Re: Tomcat writing the wrong timestamp on compiled JSP's On 13-Aug-2009

Re: Tomcat writing the wrong timestamp on compiled JSP's

2009-08-13 Thread Andre-John Mas
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

Re: Tomcat writing the wrong timestamp on compiled JSP's

2009-08-13 Thread Andre-John Mas
On 14-Aug-2009, at 00:09, Andre-John Mas wrote: 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

Re: Tomcat writing the wrong timestamp on compiled JSP's

2009-08-13 Thread Mon Cab
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

Re: Tomcat writing the wrong timestamp on compiled JSP's

2009-08-13 Thread Mon Cab
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