[Mono-bugs] [Bug 58287][Maj] Changed - Timespan crashes on Mac OS X

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 23 May 2004 11:59:15 -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 dru@druware.com.

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

--- shadow/58287	2004-05-23 11:41:27.000000000 -0400
+++ shadow/58287.tmp.24066	2004-05-23 11:59:14.000000000 -0400
@@ -63,6 +63,20 @@
 			 
 			System.Console.WriteLine("Date: " + dt.ToShortDateString().ToString());
 
 the globCal.AddDays(DateTime, int); is where things go south. Further Information to 
 follow.
 
+
+------- Additional Comments From dru@druware.com  2004-05-23 11:59 -------
+Further information: 
+
+The actual root problem (and this effects several XSP pages beyond Calendar) is the 
+following code (lines 235-239 in corlib/System/TimeSpan.cs)
+
+			try {
+				checked {
+					long val = (long) Math.Round(value);
+					return new TimeSpan (val * TicksPerMillisecond);
+				}
+
+the cast to long is raising an overflow exception.