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

           Summary: System.DateTime.FromOADate fails on date with negative
                    UTC offset
           Product: Mono: Class Libraries
           Version: 1.2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [EMAIL PROTECTED]
          Found By: ---


calling System.DateTime.FromOADate for a date containing a negative UTC offset
results in an out of range exception. Example output from a newsreader
application using Indy.NNTP:


d
Parameter name: [-657435,2958466]
  at System.DateTime.FromOADate (Double d) [0x00000]
  at Borland.Delphi.TDateTime.FromOADate (Double AValue) [0x00000]
  at Borland.Delphi.TDateTime.op_Implicit (Double AValue) [0x00000]
  at Indy.Sockets.NNTP.ParseXOVER (System.String Aline, System.Int32&
AArticleIndex, System.String& ASubject, System.String& AFrom,
Borland.Delphi.TDateTime& ADate, System.String& AMsgId, System.String&
AReferences, System.Int32& AByteCount, System.Int32& ALineCount, System.String&
AExtraData) [0x00000]
  at (wrapper remoting-invoke-with-check) Indy.Sockets.NNTP:ParseXOVER
(string,int&,string&,string&,Borland.Delphi.TDateTime&,string&,string&,int&,int&,string&)

The date was

Fri, 12 Aug 2005 15:41:15 -0500

It works as expected without exception when the UTC offset is positive.


-- 
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