Funnily enough the above code showed the date and time that matched the client machine's date/time, and not the server's.
Thus it showed 21 August 2007 and not 1 October 2007.
This was rectified by restarting Tomcat. However I'm curious to find out why/how Tomcat was holding to the previous date/time.
Any idea? Thanks for your opinions.
Joan Horta Tosas
posted 8 years ago
That's because the Java classes for the Date used by the session where loaded before the change. Java classes are not hot redeployable, just some application/web servers do redeploys and only in some especific dirs.