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