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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [EMAIL PROTECTED]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to