天天看点

中国标准时间 导致 TimeZoneNotFoundException

在Windows XP上 System.TimeZoneNotFoundException: The time zone ID '中国标准时间' was not found on the local

在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",也就是源代码要替换的函数实现的功能啦。