[Mono-bugs] [Bug 75749][Nor] Changed - DateTime.Parse fails to
parse - works on .NET 1.1
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Aug 9 05:22:36 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 mhinks at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=75749
--- shadow/75749 2005-08-09 00:56:15.000000000 -0400
+++ shadow/75749.tmp.11069 2005-08-09 05:22:36.000000000 -0400
@@ -1,12 +1,12 @@
Bug#: 75749
Product: Mono: Class Libraries
Version: 1.1
OS: unknown
OS Details:
-Status: NEEDINFO
+Status: REOPENED
Resolution:
Severity: Unknown
Priority: Normal
Component: System
AssignedTo: mono-bugs at ximian.com
ReportedBy: mhinks at gmail.com
@@ -44,6 +44,30 @@
in <0x00013> System.DateTime:Parse (System.String s)
in <0x00013> DateFail.MainClass:Main (System.String[] args)
------- Additional Comments From atsushi at ximian.com 2005-08-09 00:56 -------
Culture information is missing to reproduce it.
+
+------- Additional Comments From mhinks at gmail.com 2005-08-09 05:22 -------
+Here's the bug with culture info included:
+
+namespace DateFail
+{
+ class MainClass
+ {
+ public static void Main(string[] args)
+ {
+
+ IFormatProvider culture = new CultureInfo("en-
+GB", true);
+
+ DateTime.Parse("17/07/2005 00:00:00", culture,
+DateTimeStyles.NoCurrentDateDefault);
+
+ }
+ }
+}
+
+Please note that 17/07/2005 is a valid GB (Great Britain = UK) date
+denoting the 17th of July 2005 (dd/mm/yyyy).
+
More information about the mono-bugs
mailing list