[Mono-bugs] [Bug 49960][Nor] Changed - DateTime fails to parse "2001/1/1"
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 22 Oct 2003 10:33:46 -0400 (EDT)
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 dick@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=49960
--- shadow/49960 2003-10-22 05:40:17.000000000 -0400
+++ shadow/49960.tmp.14111 2003-10-22 10:33:46.000000000 -0400
@@ -1,13 +1,13 @@
Bug#: 49960
Product: Mono/Class Libraries
Version: unspecified
OS: All
OS Details:
-Status: NEW
-Resolution:
+Status: RESOLVED
+Resolution: FIXED
Severity: Unknown
Priority: Normal
Component: CORLIB
AssignedTo: mono-bugs@ximian.com
ReportedBy: gonzalo@ximian.com
QAContact: mono-bugs@ximian.com
@@ -55,6 +55,12 @@
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
Thread.CurrentThread.CurrentUICulture = CultureInfo.InvariantCulture;
Console.WriteLine (DateTime.Parse ("2001/1/1"));
}
}
---
+
+------- Additional Comments From dick@ximian.com 2003-10-22 10:33 -------
+The single-string constructor causes DateTime.Parse() to try the
+builtin formats. The first in the list uses '-' as the date
+separator, which wasn't handled in the parser. Fixed in CVS.
+