[Mono-bugs] [Bug 71682][Wis] New - Applications hangs on ToLocalTime

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 24 Jan 2005 12:57:44 -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 albertoavila@gmail.com.

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

--- shadow/71682	2005-01-24 12:57:44.000000000 -0500
+++ shadow/71682.tmp.16073	2005-01-24 12:57:44.000000000 -0500
@@ -0,0 +1,63 @@
+Bug#: 71682
+Product: Mono: Class Libraries
+Version: 1.0
+OS: GNU/Linux [Other]
+OS Details: Ubuntu warty dog
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: albertoavila@gmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Applications hangs on ToLocalTime
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+Any applications hangs when i do someDateTime.ToLocalTime(), when
+someDateTime is before of january 1st of 1971.
+
+
+Steps to reproduce the problem:
+Try this code:
+public class Prueba {
+
+        public static void Main(String[] args)
+        {
+                DateTime f1,f2;
+                f1 = new DateTime(1971,1,1);
+                f2 = new DateTime(1970,12,31);
+                Console.WriteLine("This works: " + f1.ToLocalTime());
+                Console.WriteLine("This hangs: " + f2.ToLocalTime());
+        }
+}
+
+
+
+Actual Results:
+
+When the code is compiled and runned i get this:
+
+albertein@cacharro:~/test $ mono test.exe
+This works: 31/12/1970 05:00:00 p.m.
+
+And then the app get frozzen.
+
+Expected Results:
+
+The app run correctly (show the two dates)
+
+How often does this happen? 
+
+Always
+
+Additional Information:
+
+I'm doing this with Ununtu Warty dog, with mono 1.0.5 build drom source,
+and i'm in the America/Mazatlan timezone.