I'm experiencing a very strange side-effect that I hope someone here has encountered and knows of a fix for. It's definitely specific to some code that I work with, but the behavior changed when I converted from Fedora to Kubuntu.
Using Sun JDK 1.4.2_13, we have some code that takes a Date object and marshalls it as a string, then unmarshalls it back into a Date object again. (This would normally be for transmission over the wire, but for test purposes no transmission takes place.) When this happens, the resulting Date object is exactly 1 hour prior to the original Date object.
I checked all the places I could think of to make sure that I'm using the right timezone. It appears to be set properly. /etc/timezone is set to America/New York as I expect. /etc/localtime shows EST5EDT as I would expect it to.
I also removed all of the gij and gcj packages from the OS when I installed because they conflict with the JVM that I really wish to be using.
This behavior began when I converted to Kubuntu, so I suspect there is something in the system that is somehow affecting Java adversely to cause this.
Any ideas?
Thanks in advance,
Dave
Using Sun JDK 1.4.2_13, we have some code that takes a Date object and marshalls it as a string, then unmarshalls it back into a Date object again. (This would normally be for transmission over the wire, but for test purposes no transmission takes place.) When this happens, the resulting Date object is exactly 1 hour prior to the original Date object.
I checked all the places I could think of to make sure that I'm using the right timezone. It appears to be set properly. /etc/timezone is set to America/New York as I expect. /etc/localtime shows EST5EDT as I would expect it to.
I also removed all of the gij and gcj packages from the OS when I installed because they conflict with the JVM that I really wish to be using.
This behavior began when I converted to Kubuntu, so I suspect there is something in the system that is somehow affecting Java adversely to cause this.
Any ideas?
Thanks in advance,
Dave
Comment