[Mono-bugs] [Bug 75213][Nor] New - DateTime.ParseExact throws
InvalidFormat exception when provided with a valid ldap date
string value
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Jun 10 09:54:32 EDT 2005
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by harryholt at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=75213
--- shadow/75213 2005-06-10 09:54:32.000000000 -0400
+++ shadow/75213.tmp.27359 2005-06-10 09:54:32.000000000 -0400
@@ -0,0 +1,43 @@
+Bug#: 75213
+Product: Mono: Class Libraries
+Version: 1.1
+OS: SUSE 9.2
+OS Details:
+Status: NEW
+Resolution:
+Severity: Unknown
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: harryholt at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: DateTime.ParseExact throws InvalidFormat exception when provided with a valid ldap date string value
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+DateTime.ParseExact throws an InvalidFormat exception when parsing a valid,
+properly formatted datetime string, in ldap date string GMT format
+(yyyymmddhhmmssZ).
+
+Steps to reproduce the problem:
+1. DateTime myDate = DateTime.ParseExact("20050707132527Z",
+"yyyyMMddHHmmss\\Z", System.Globalization.DateTimeFormatInfo.CurrentInfo);
+2.
+3.
+
+Actual Results:
+Throws InvalidFormat exception
+
+Expected Results:
+Return a DateTime object with the correct value.
+
+How often does this happen?
+Every time.
+
+Additional Information:
+Works as expected under Microsoft.NET. The same issue is encountered when
+using System.Globalization.DateTimeFormatInfo.InvariantInfo.
More information about the mono-bugs
mailing list