Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Date function after Mar-11-2007 time change

 
Ram Gokul
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64844
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not a servlet issue. Moved to a more appropriate forum.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64844
86
IntelliJ IDE Java jQuery Mac Mac OS X
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic