Author: spouliot
Date: 2007-01-05 12:20:43 -0500 (Fri, 05 Jan 2007)
New Revision: 70542

Modified:
   
trunk/mcs/class/corlib/System.Security.Cryptography.X509Certificates/ChangeLog
   
trunk/mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509Certificate.cs
Log:
2007-01-05  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * X509Certificate.cs: Now that the ASN.1 converted DateTime is 
        "clearly" UTC (in 2.0) we need to adjust GetEffectiveDateString and 
        GetExpirationDateString methods to return the local time.



Modified: 
trunk/mcs/class/corlib/System.Security.Cryptography.X509Certificates/ChangeLog
===================================================================
--- 
trunk/mcs/class/corlib/System.Security.Cryptography.X509Certificates/ChangeLog  
    2007-01-05 17:20:14 UTC (rev 70541)
+++ 
trunk/mcs/class/corlib/System.Security.Cryptography.X509Certificates/ChangeLog  
    2007-01-05 17:20:43 UTC (rev 70542)
@@ -1,3 +1,9 @@
+2007-01-05  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * X509Certificate.cs: Now that the ASN.1 converted DateTime is 
+       "clearly" UTC (in 2.0) we need to adjust GetEffectiveDateString and 
+       GetExpirationDateString methods to return the local time.
+
 2006-11-17  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * X509Certificate.cs: Fix Equals to throw a CryptographicException, in

Modified: 
trunk/mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509Certificate.cs
===================================================================
--- 
trunk/mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509Certificate.cs
     2007-01-05 17:20:14 UTC (rev 70541)
+++ 
trunk/mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509Certificate.cs
     2007-01-05 17:20:43 UTC (rev 70542)
@@ -264,7 +264,7 @@
                        if (x509 == null)
                                throw new CryptographicException 
(Locale.GetText ("Certificate instance is empty."));
 
-                       return x509.ValidFrom.ToString ();
+                       return x509.ValidFrom.ToLocalTime ().ToString ();
 #else
                        // LAMESPEC: Microsoft returns the local time from 
Pacific Time (GMT-8)
                        // BUG: This will not be corrected in Framework 1.1 and 
also affect WSE 1.0
@@ -281,7 +281,7 @@
                        if (x509 == null)
                                throw new CryptographicException 
(Locale.GetText ("Certificate instance is empty."));
 
-                       return x509.ValidUntil.ToString ();
+                       return x509.ValidUntil.ToLocalTime ().ToString ();
 #else
                        // LAMESPEC: Microsoft returns the local time from 
Pacific Time (GMT-8)
                        // BUG: This will not be corrected in Framework 1.1 and 
also affect WSE 1.0

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

Reply via email to