Details
-
Type: Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.1.3
-
Component/s: None
-
Labels:None
-
JDK version and platform:Sun JDK 1.4.2_08 for Windows
Description
The unmarshaled Calendar instance uses the default time zone.
public void testCalendar()
{ final Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTC")); final XStream xstream = new XStream(); final String xml = xstream.toXML(cal); final Calendar serialized = (Calendar)xstream.fromXML(xml); assertEquals(cal, serialized); }
Patch and test case.