[Mono-bugs] [Bug 377042] New: DateTime.ParseExact throws FormatException : Invalid format when it shouldn't

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Apr 3 22:43:27 EDT 2008


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


           Summary: DateTime.ParseExact throws FormatException : Invalid
                    format when it shouldn't
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Core
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: albright at wesay.org
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---



Eric Albright <albright at wesay.org> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
               Flag|                                                |SHIP_STOPPER?


The following throws System.FormatException : Invalid format.

DateTime result = DateTime.ParseExact("2005-01-01T01:11:11+8:00",
                                new string[]
                                        {
                                                "yyyy-MM-ddTHH:mm:ssZ",
                                                "yyyy-MM-ddTHH:mm:sszzzz",
                                                "yyyy-MM-dd"
                                        },
                                new DateTimeFormatInfo(),
                                DateTimeStyles.AdjustToUniversal
                                | DateTimeStyles.AssumeUniversal);


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