[Mono-bugs] [Bug 30076][Wis] New - DateTime.MinValue.Year has a value outside of acceptable range

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
9 Sep 2002 20:43:09 -0000


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 shahms@shahms.com.

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

--- shadow/30076	Mon Sep  9 16:43:09 2002
+++ shadow/30076.tmp.20853	Mon Sep  9 16:43:09 2002
@@ -0,0 +1,25 @@
+Bug#: 30076
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: shahms@shahms.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: DateTime.MinValue.Year has a value outside of acceptable range
+
+If you do System.Console.WriteLine (DateTime.MinValue) you'll get an
+exception inside TimeZone because the year calculation inside DateTime
+returns a value outside the range of acceptable values (-95627 or something
+similar).  The MS runtime correctly returns a value of '1' in this
+instance.  I'm not sure if the calculation is wrong, or if negative values
+should be simply be "rounded" to 1, but either way, it breaks a number of
+things that should work.