[Mono-bugs] [Bug 352210] Serialization and deserialization of datetime to and from xml, "shifts" the time with the timezone

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jul 25 12:57:22 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=352210

User twiest at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=352210#c31


Thomas Wiest <twiest at novell.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
             Status|RESOLVED                                        |VERIFIED




--- Comment #31 from Thomas Wiest <twiest at novell.com>  2008-07-25 10:57:21 MDT ---
Using the original testcase, I verified that this is fixed in Mono 2.0p1 on
SLED 10 sp2 i586.


Output of test case on Mono 1.9.1:
doc   = '<test><date>2007-06-15T10:30:10.5</date></test>'
docm  = '<?xml version="1.0" encoding="utf-8"?><test
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><date>2007-06-15T10:30:10.5-06:00</date></test>'
doc2m = '<?xml version="1.0" encoding="utf-8"?><test
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><date>2007-06-15T16:30:10.5-06:00</date></test>'
doc3m = '<?xml version="1.0" encoding="utf-8"?><test
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><date>2007-06-15T22:30:10.5-06:00</date></test>'


Output of test case on Mono 2.0p1:
doc   = '<test><date>2007-06-15T10:30:10.5</date></test>'
docm  = '<?xml version="1.0" encoding="utf-8"?><test
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><date>2007-06-15T10:30:10.5</date></test>'
doc2m = '<?xml version="1.0" encoding="utf-8"?><test
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><date>2007-06-15T10:30:10.5</date></test>'
doc3m = '<?xml version="1.0" encoding="utf-8"?><test
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><date>2007-06-15T10:30:10.5</date></test>'


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list