File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Date function after Mar-11-2007 time change Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Date function after Mar-11-2007 time change" Watch "Date function after Mar-11-2007 time change" New topic
Author

Date function after Mar-11-2007 time change

Ram Gokul
Ranch Hand

Joined: Oct 07, 2005
Posts: 85
Hi,

In a servlet , I use a function request.getsession().getLastAccessed to get the last accesses time and then add 30 minutes to it to some functionality .

After March 12 , customers are complaining that this is NOT working .i.e the functionality is lagging behind an hour.

So in my JSP when i print now a simple variable , new Date() , it is showing me the following :

Last accessed Wed Mar 28 14:12:30 EST 2007

which is one hour behind my system time : 15:12:30 .


Can some one help me with this as even a simple statement like
<%= new Date() %> is giving a wrong result .
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61315
    
  66

Not a servlet issue. Moved to a more appropriate forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61315
    
  66

http://www.coderanch.com/t/382258/java/java/TimeZone-Daylight-Savings-Time

Same issue perhaps?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

Or perhaps you did not update the JRE that your application server is using? New versions of Sun's JRE 1.4 and 5.0 were released some time ago that handle the new daylight saving time rules and IBM has fixes out as well.
 
GeeCON Prague 2014
 
subject: Date function after Mar-11-2007 time change