[Mono-bugs] [Bug 337729] New: XmlSerializer does not keep the value of DateTime. Kind when value is UTC
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Oct 30 02:39:02 EDT 2007
https://bugzilla.novell.com/show_bug.cgi?id=337729
Summary: XmlSerializer does not keep the value of DateTime.Kind
when value is UTC
Product: Mono: Class Libraries
Version: 1.2
Platform: 32bit
OS/Version: openSUSE 10.2
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.XML
AssignedTo: atsushi at ximian.com
ReportedBy: luisfam at hotmail.com
QAContact: mono-bugs at ximian.com
Found By: Development
If you serialize a datetime with a UTC value and then Deserialize it loses the
value of the Kind property. I have attached a sample program to see the bug.
The same program in .NET works correctly.
Compile like this:
gmcs date_serializer.cs -reference:System.Xml.dll
Output:
Kind before serialization: Utc
Kind after serialization: Local
Should be:
Kind before serialization: Utc
Kind after serialization: Utc
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list