[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:41:27 -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-13 15:31:23.000000000 -0400
+++ shadow/58287.tmp.23941	2004-05-23 11:41:27.000000000 -0400
@@ -43,6 +43,26 @@
 in <0x00038> System.Web.UI.Control:Render (System.Web.UI.HtmlTextWriter)
 in <0x00048> System.Web.UI.Control:RenderControl (System.Web.UI.HtmlTextWriter)
 in <0x00514> System.Web.UI.Page:InternalProcessRequest ()
 in <0x000d0> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
 in <0x00448> ExecuteHandlerState:Execute ()
 in <0x000d0> StateMachine:ExecuteState (System.Web.HttpApplication/IStateHandler,bool&)
+
+------- Additional Comments From dru@druware.com  2004-05-23 11:41 -------
+The bug appears to be in the constructor of the System.Web,UI.WebControls.Calendar 
+class.  The following code will reproduce the problem:
+
+			System.Globalization.Calendar globCal;
+			
+			globCal = System.Globalization.DateTimeFormatInfo.CurrentInfo.Calendar;
+			
+			System.DateTime dt = System.DateTime.Now;
+			
+			System.Console.WriteLine("Date: " + dt.ToShortDateString().ToString());
+		
+			globCal.AddDays (dt, 1 - globCal.GetDayOfMonth (dt));
+			 
+			System.Console.WriteLine("Date: " + dt.ToShortDateString().ToString());
+
+the globCal.AddDays(DateTime, int); is where things go south. Further Information to 
+follow.
+