GetUtcOffset返回错误的时区

cho*_*obo 2 c# asp.net asp.net-mvc

出于某种原因,我使用以下代码

 TimeSpan timeDiffUtcServer = TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Now);
Run Code Online (Sandbox Code Playgroud)

它返回-07:00:00偏移量

我使用的是Windows XP,我的时区设置为太平洋时间-08:00.我通过我的计算机上的VS 2010内置的IIS服务器来运行这个,所以我无法弄清楚为什么会出现时间差异.

谢谢!

Gre*_*ill 6

太平洋夏令时间偏移-7小时.