diff --git a/src/ExchangeSharp/Utility/CryptoUtility.cs b/src/ExchangeSharp/Utility/CryptoUtility.cs index ed55b0a5..6c5e45f4 100644 --- a/src/ExchangeSharp/Utility/CryptoUtility.cs +++ b/src/ExchangeSharp/Utility/CryptoUtility.cs @@ -37,7 +37,8 @@ public static class CryptoUtility internal static readonly DateTime UnixEpoch = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc); internal static readonly DateTime UnixEpochLocal = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Local); internal static readonly Encoding Utf8EncodingNoPrefix = new UTF8Encoding(false, true); - static string koreanZoneId = "Korea Standard Time"; + static bool isWindows = System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(OSPlatform.Windows); + static string koreanZoneId = isWindows ? "Korea Standard Time" : "Asia/Seoul"; static TimeZoneInfo koreaZone = TimeZoneInfo.FindSystemTimeZoneById(koreanZoneId); private static Func utcNowFunc = UtcNowFuncImpl;