From 1d31e90574c9dc8060670773a99c8a9ea5b2827c Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Thu, 30 Jun 2022 10:33:35 +0700 Subject: Some PORTABLE cleanup --- crypto/src/asn1/x509/Time.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'crypto/src/asn1/x509/Time.cs') 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)); -- cgit 1.4.1