diff options
author | Oren Novotny <oren@novotny.org> | 2014-08-27 21:54:42 -0400 |
---|---|---|
committer | Oren Novotny <oren@novotny.org> | 2014-08-27 21:54:42 -0400 |
commit | fafcc5120591e9b549dc8d85d7afc50842a067a7 (patch) | |
tree | fe99faca65ead75b67634d169fbfcac5a965f5d5 /crypto/src/asn1/x509/Time.cs | |
parent | Fix bugs from tests (diff) | |
download | BouncyCastle.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.cs | 2 |
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)); |