diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-06-30 10:33:35 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-06-30 10:33:35 +0700 |
commit | 1d31e90574c9dc8060670773a99c8a9ea5b2827c (patch) | |
tree | 50c520a5e0bd14dab5e5ad85cdc5dd5e8928ff56 /crypto/src/asn1/x509/Time.cs | |
parent | Cleanup Stream disposing in Bcpg (diff) | |
download | BouncyCastle.NET-ed25519-1d31e90574c9dc8060670773a99c8a9ea5b2827c.tar.xz |
Some PORTABLE cleanup
Diffstat (limited to 'crypto/src/asn1/x509/Time.cs')
-rw-r--r-- | crypto/src/asn1/x509/Time.cs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/crypto/src/asn1/x509/Time.cs b/crypto/src/asn1/x509/Time.cs index fa3936d63..efdf63850 100644 --- a/crypto/src/asn1/x509/Time.cs +++ b/crypto/src/asn1/x509/Time.cs @@ -33,14 +33,9 @@ namespace Org.BouncyCastle.Asn1.X509 * and 2049 a UTCTime object is Generated, otherwise a GeneralizedTime * is used. */ - public Time( - DateTime date) + public Time(DateTime date) { -#if PORTABLE string d = date.ToUniversalTime().ToString("yyyyMMddHHmmss", CultureInfo.InvariantCulture) + "Z"; -#else - string d = date.ToString("yyyyMMddHHmmss", CultureInfo.InvariantCulture) + "Z"; -#endif int year = int.Parse(d.Substring(0, 4)); |