diff options
Diffstat (limited to 'crypto/test/src/asn1/test/GeneralizedTimeTest.cs')
-rw-r--r-- | crypto/test/src/asn1/test/GeneralizedTimeTest.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/test/src/asn1/test/GeneralizedTimeTest.cs b/crypto/test/src/asn1/test/GeneralizedTimeTest.cs index 35767ccd9..4df2666b3 100644 --- a/crypto/test/src/asn1/test/GeneralizedTimeTest.cs +++ b/crypto/test/src/asn1/test/GeneralizedTimeTest.cs @@ -186,13 +186,11 @@ namespace Org.BouncyCastle.Asn1.Tests } } - private string CalculateGmtOffset( - DateTime date) + private string CalculateGmtOffset(DateTime date) { char sign = '+'; - // Note: GetUtcOffset incorporates Daylight Savings offset - TimeSpan offset = TimeZone.CurrentTimeZone.GetUtcOffset(date); + TimeSpan offset = TimeZoneInfo.Local.GetUtcOffset(date); if (offset.CompareTo(TimeSpan.Zero) < 0) { sign = '-'; |