[Mono-bugs] [Bug 52075][Nor] New - Incorrect DateTime.MaxValue.Year value

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 11 Dec 2003 17:19:51 -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 bk@slashdev.it.

http://bugzilla.ximian.com/show_bug.cgi?id=52075

--- shadow/52075	2003-12-11 17:19:51.000000000 -0500
+++ shadow/52075.tmp.20135	2003-12-11 17:19:51.000000000 -0500
@@ -0,0 +1,49 @@
+Bug#: 52075
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: Slackware 9.1 kernel 2.4.22
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bk@slashdev.it               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Incorrect DateTime.MaxValue.Year value
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+even if DateTime.MaxValue.ToString() returns "31/12/99 23:59:59",
+DateTime.MaxValue.Year returns 10000
+
+Steps to reproduce the problem:
+Run this test
+using System;
+public class DateTimeTest {
+	[STAThread] 
+	static void Main(){
+		Console.WriteLine("MaxYear: " + DateTime.MaxValue.Year);
+	}
+}
+
+
+Actual Results:
+10000
+
+Expected Results:
+9999
+
+How often does this happen? 
+Always
+
+Additional Information:
+Mono JIT compiler version 0.29.99.20031211
+On ms's framework returns 9999
+
+Massimo Prota