Details
-
Bug
-
Status: Open
-
Blocker
-
Resolution: Unresolved
-
0.6
-
openSUSE 11.4 / Java / javac Sun 1.6.0_24 / x86
Description
When compiling I get a test case failure in the MarshallerTest.java - this seems to be due to some kind of timezone interpretation issue. I think the problem is with the testcase and not Jax itself. If I'm reading the code correctly a Date is retrieved from a Calendar object with the timezone set to GMT, subsequently this is retrieved and output with a custom Format class using SimpleDateFormat. I think the Date stores UTC and the SimpleDateFormat outputs to the system timezone (although I didn't check this not being clued up on where I could find the xml string output). The attached patch (assuming I can attach a patch in a moment) fixes this against SVN and allows the test case to pass on my system.