中国标准时间 导致 TimeZoneNotFoundException

在Windows XP上 System.TimeZoneNotFoundException: The time zone ID '中国标准时间' was not found on the local computer.
   在 System.TimeZoneInfo.GetTimeZone(String id)
   在 System.TimeZoneInfo.FindSystemTimeZoneById(String id)

这估计是一个Bug,把所有注册表中的“中国标准时间 ”全部替换成 "China Standard Time",也就是源代码要替换的函数实现的功能啦。

欢迎大家扫描下面二维码成为我的客户,为你服务和上云

原文地址:https://www.cnblogs.com/shanyou/p/1372438.html