Author: spouliot
Date: 2007-11-08 10:36:58 -0500 (Thu, 08 Nov 2007)
New Revision: 89197

Modified:
   trunk/mcs/class/corlib/System/ChangeLog
   trunk/mcs/class/corlib/System/TimeZone.cs
Log:
2007-11-08  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * TimeZone.cs: Under 2.0 we must return a Local DateTime.MinValue.
        Fix the regression on the x86_64 bot which seems to be in it's own
        timezone.



Modified: trunk/mcs/class/corlib/System/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System/ChangeLog     2007-11-08 15:29:11 UTC (rev 
89196)
+++ trunk/mcs/class/corlib/System/ChangeLog     2007-11-08 15:36:58 UTC (rev 
89197)
@@ -1,3 +1,9 @@
+2007-11-08  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * TimeZone.cs: Under 2.0 we must return a Local DateTime.MinValue.
+       Fix the regression on the x86_64 bot which seems to be in it's own
+       timezone.
+
 2007-11-07  Gert Driesen  <[EMAIL PROTECTED]>
 
        * Exception.cs: Cosmetic change to default exception message on

Modified: trunk/mcs/class/corlib/System/TimeZone.cs
===================================================================
--- trunk/mcs/class/corlib/System/TimeZone.cs   2007-11-08 15:29:11 UTC (rev 
89196)
+++ trunk/mcs/class/corlib/System/TimeZone.cs   2007-11-08 15:36:58 UTC (rev 
89197)
@@ -127,7 +127,11 @@
 #endif
                        } else if (utcOffset.Ticks < 0) {
                                if (time.Ticks + utcOffset.Ticks < 
DateTime.MinValue.Ticks)
+#if NET_2_0
+                                       return DateTime.SpecifyKind 
(DateTime.MinValue, DateTimeKind.Local);
+#else
                                        return DateTime.MinValue;
+#endif
                        }
 
                        DateTime local = time.Add (utcOffset);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to