Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / October 2004

Tip: Looking for answers? Try searching our database.

Java applet converting dates to local timezone

Thread view: 
Michael Elliott - 15 Oct 2004 12:22 GMT
We have recently moved a Java applet from one host to another.  Part
of this applet retrieves a date from a CORBA server running on the
host.

We have a problem on the new server where the applet is converting the
returned date to the timezone of the local PC.  As the time portion of
the date is set to 00.00.00 this causes the date to change in
locations that are behing GMT (our server is in London).

For example if the server returns 18th October 00.00.00 GMT, the
applet running on a PC in New York displays 17th October (behind the
scenes it has converted to EST).  The mystery is why this has started
happening when we moved to a new server, the code is identical and
there a no major differences in the webserver (iPlanet) config.

Anyone any ideas?
VK - 15 Oct 2004 15:30 GMT
Can you post the date parsing block of your applet?

Do both hosts (old and new) run the same VM?
Paul Lutus - 15 Oct 2004 16:50 GMT
> We have recently moved a Java applet from one host to another.  Part
> of this applet retrieves a date from a CORBA server running on the
[quoted text clipped - 12 lines]
>
> Anyone any ideas?

I just have one question. Why is this a problem? Is the application not
showing the correct local time? If you really want the local machine to
show GMT, why don't you change the time zone on either the local machine
proper, or within your application?

In other words, tell us:

1. What you want.

2. What you are getting instead.

3. How one differs from the other.

Signature

Paul Lutus
http://www.arachnoid.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.