![]() |
|
|
|
|
Issue Type:
|
Bug
|
|
Affects Versions:
|
1.4.3 |
|
Assignee:
|
Joerg Schaible
|
|
Attachments:
|
SqlTimestampConverter.patch |
|
Components:
|
Converters |
|
Created:
|
11/Oct/12 4:28 AM
|
|
Description:
|
Test case:
java.util.TimeZone.setDefault(java.util.TimeZone.getTimeZone("GMT+0:00"));
final XStream instance = new XStream();
final java.sql.Timestamp expected = new java.sql.Timestamp(0);
final String marshalled = instance.toXML(expected);
java.util.TimeZone.setDefault(java.util.TimeZone.getTimeZone("GMT-8:00"));
final java.sql.Timestamp got = (java.sql.Timestamp) instance.fromXML(marshalled);
Assert.assertEquals(expected, got);
Test result:
shouldHandleTimezoneForSqlTimestamp(com.thoughtworks.xstream.XStreamTest) Time elapsed: 0.148 sec <<< FAILURE!
java.lang.AssertionError: expected:<1969-12-31 16:00:00.0> but was:<1970-01-01 00:00:00.0>
Proposal patch in attachment.
|
|
Project:
|
XStream
|
|
Priority:
|
Major
|
|
Reporter:
|
Andrea Zorzin
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email