[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 05:40:17 -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 gonzalo@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=49960
--- shadow/49960 2003-10-21 17:19:32.000000000 -0400
+++ shadow/49960.tmp.12826 2003-10-22 05:40:17.000000000 -0400
@@ -37,6 +37,24 @@
in <0x00016> System.DateTime:Parse (string)
in <0x00013> .C:Main ()
Expected results:
01/01/2001 0:00:00
+
+------- Additional Comments From gonzalo@ximian.com 2003-10-22 05:40 -------
+Setting the InvariantCulture does not make any difference
+---
+using System;
+using System.Globalization;
+using System.Threading;
+
+class C
+{
+ static void Main ()
+ {
+ Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
+ Thread.CurrentThread.CurrentUICulture = CultureInfo.InvariantCulture;
+ Console.WriteLine (DateTime.Parse ("2001/1/1"));
+ }
+}
+---