This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes time is wrong using IE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "time is wrong using IE" Watch "time is wrong using IE" New topic
Author

time is wrong using IE

diane murphy
Greenhorn

Joined: Nov 17, 2003
Posts: 1
the code I have is
Calendar newExpDate = Calendar.getInstance();
request.setAttr(Request.DATA_ENTRY_UPDATE_DATE, newExpDate.getTime() );
When I process this in IE the database is storing the wrong time. Seems to give a 12:XX AM time.
When I process this in Netscape the correct time is stored.
We have not changed any of the code for 2 months.
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1121

Hi Diane,
My guess is that the cause is the default time zone used by the JVM (in Micro$oft Internet Explorer). If you haven't already read it, perhaps the JavaWorld article entitled What's your time zone? will help?
Good Luck,
Avi.
 
Don't get me started about those stupid light bulbs.
 
subject: time is wrong using IE
 
Similar Threads
Thread in a Servlet
html-only jsp page displaying source in safari browser on a mac
destroy() does not stop Process object
thread
stupid Microsoft -- IE 6.0 trouble . . .