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

           Summary: DateTime.ToBinary and DateTime.FromBinary not compatible
                    with .Net
           Product: Mono: Class Libraries
           Version: 1.2
          Platform: x86
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [EMAIL PROTECTED]
          Found By: ---


Description of Problem:

When using DateTime.ToBinary with a local DateTime (DateTimeKind.Local), mono
doesn't produce the same result as .NET.  .NET converts the ticks in UTC, so
that when calling DateTime.FromBinary, they can convert it back using the local
machine settings and have a DateTime that identifies the same point in time.

Steps to reproduce the problem:
Console.WriteLine(new DateTime(2007, 1, 1, 1, 0, 0,
DateTimeKind.Local).ToBinary());

Actual Results:
-8590339936854775808

Expected Results:
-8590339756854775808

How often does this happen? 
Every time.


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

Reply via email to