任何人都可以帮助理解这一点。 3.5中的微软TimeZoneInfo类告诉我下面的GMT日期并不是东部时区的夏令时,但它是。.NET TimeZoneInfo关于夏令时的错误
// Get Eastern Timezone
TimeZoneInfo tzEasternZone = TimeZoneInfo.FindSystemTimeZoneById("Eastern Standard Time");
// Convert to EST
DateTime easternTime = TimeZoneInfo.ConvertTime(DateTime.Parse("2009-11-01T05:00:00Z"), tzEasternZone);
// Daylight saving IS in effect on this date, but Microsoft doesn't think so
Boolean isDaylight = easternTime.IsDaylightSavingTime();
这里有2个网站称这是在夏令时:
http://www.timeanddate.com/worldclock/converted.html?month=11&day=1&year=2009&hour=5&min=0&sec=0&p1=0&p2=198
http://www.timezoneconverter.com/cgi-bin/tzc.tzc
你在测试什么操作系统? – x0n 2011-02-14 04:00:41