diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-11-08 18:40:10 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-11-08 18:40:10 +0700 |
commit | cebeeb6d6573e15fe4f1a834f77ead9e8556f570 (patch) | |
tree | 8b5bd79075ce8f4c95c1357777da3852201afc0c /crypto/src/asn1/DerUTCTime.cs | |
parent | Some more PORTABLE updates (diff) | |
download | BouncyCastle.NET-ed25519-cebeeb6d6573e15fe4f1a834f77ead9e8556f570.tar.xz |
A few more changes to sync up with BouncyCastle-PCL
Diffstat (limited to 'crypto/src/asn1/DerUTCTime.cs')
-rw-r--r-- | crypto/src/asn1/DerUTCTime.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/src/asn1/DerUTCTime.cs b/crypto/src/asn1/DerUTCTime.cs index ab8ca792d..639a2d4f4 100644 --- a/crypto/src/asn1/DerUTCTime.cs +++ b/crypto/src/asn1/DerUTCTime.cs @@ -86,7 +86,11 @@ namespace Org.BouncyCastle.Asn1 public DerUtcTime( DateTime time) { +#if PORTABLE + this.time = time.ToUniversalTime().ToString("yyMMddHHmmss", CultureInfo.InvariantCulture) + "Z"; +#else this.time = time.ToString("yyMMddHHmmss", CultureInfo.InvariantCulture) + "Z"; +#endif } internal DerUtcTime( |