| 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: 56233
|
|
|
Not a servlet issue. Moved to a more appropriate forum.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56233
|
|
http://www.coderanch.com/t/382258/java/java/TimeZone-Daylight-Savings-Time Same issue perhaps?
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16483
|
|
|
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.
|
 |
 |
|
|
subject: Date function after Mar-11-2007 time change
|
|
|