summary refs log tree commit diff
path: root/crypto/test/src/test/nist/NistCertPathTest2.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/test/src/test/nist/NistCertPathTest2.cs')
-rw-r--r--crypto/test/src/test/nist/NistCertPathTest2.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/crypto/test/src/test/nist/NistCertPathTest2.cs b/crypto/test/src/test/nist/NistCertPathTest2.cs
index 1bc40e805..e8b2e575c 100644
--- a/crypto/test/src/test/nist/NistCertPathTest2.cs
+++ b/crypto/test/src/test/nist/NistCertPathTest2.cs
@@ -7,7 +7,6 @@ using Org.BouncyCastle.Asn1;
 using Org.BouncyCastle.Asn1.X509;
 using Org.BouncyCastle.Pkix;
 using Org.BouncyCastle.Utilities.Collections;
-using Org.BouncyCastle.Utilities.Date;
 using Org.BouncyCastle.Utilities.Test;
 using Org.BouncyCastle.X509;
 using Org.BouncyCastle.X509.Extension;
@@ -349,7 +348,7 @@ namespace Org.BouncyCastle.Tests.Nist
 			}
 
 			// Perform validation as of this date since test certs expired
-			parameters.Date = new DateTimeObject(DateTime.Parse("1/1/2011"));
+			parameters.Date = DateTime.Parse("1/1/2011");
 
 			return validator.Validate(certPath, parameters);
         }
@@ -410,7 +409,7 @@ namespace Org.BouncyCastle.Tests.Nist
             builderParams.AddStoreCrl(x509CrlStore);
 
             // Perform validation as of this date since test certs expired
-            builderParams.Date = new DateTimeObject(DateTime.Parse("1/1/2011"));
+            builderParams.Date = DateTime.Parse("1/1/2011");
 
             try
             {