summary refs log tree commit diff
path: root/crypto/src/asn1/x509/Time.cs
diff options
context:
space:
mode:
authorOren Novotny <oren@novotny.org>2014-08-27 21:54:42 -0400
committerOren Novotny <oren@novotny.org>2014-08-27 21:54:42 -0400
commitfafcc5120591e9b549dc8d85d7afc50842a067a7 (patch)
treefe99faca65ead75b67634d169fbfcac5a965f5d5 /crypto/src/asn1/x509/Time.cs
parentFix bugs from tests (diff)
downloadBouncyCastle.NET-ed25519-fafcc5120591e9b549dc8d85d7afc50842a067a7.tar.xz
Fix bugs based on tests.
Diffstat (limited to 'crypto/src/asn1/x509/Time.cs')
-rw-r--r--crypto/src/asn1/x509/Time.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/asn1/x509/Time.cs b/crypto/src/asn1/x509/Time.cs
index 0f2511e6d..04b4a5a65 100644
--- a/crypto/src/asn1/x509/Time.cs
+++ b/crypto/src/asn1/x509/Time.cs
@@ -36,7 +36,7 @@ namespace Org.BouncyCastle.Asn1.X509
         public Time(
             DateTime date)
         {
-            string d = date.ToString("yyyyMMddHHmmss") + "Z";
+            string d = date.ToUniversalTime().ToString("yyyyMMddHHmmss") + "Z";
 
             int year = Int32.Parse(d.Substring(0, 4));