[Mono-bugs] [Bug 71288][Nor] New - DateTime.Parse throws exception when it should not
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 14 Jan 2005 17:40:55 -0500 (EST)
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 miguel@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=71288
--- shadow/71288 2005-01-14 17:40:55.000000000 -0500
+++ shadow/71288.tmp.12481 2005-01-14 17:40:55.000000000 -0500
@@ -0,0 +1,35 @@
+Bug#: 71288
+Product: Mono: Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: miguel@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: DateTime.Parse throws exception when it should not
+
+From our NUnit tests (currently commented out for Mono execution):
+
+using System;
+
+class X {
+ static void Main ()
+ {
+ DateTime dt = DateTime.Parse ("2004-05-26T03:29:01-07:00 foo");
+ dt = TimeZone.CurrentTimeZone.ToUniversalTime (dt);
+ if (632211641410000000 != dt.Ticks)
+ Console.WriteLine ("Failed");
+ else
+ Console.WriteLine ("OK");
+ }
+}
+
+This program should print OK.