जब मैं डीटी के इस विशिष्ट मान के लिए कोड चलाता हूं, तो जब मैं ConvertTimeToUtc विधि को कॉल करता हूं तो अपवाद फेंक दिया जाता है। मेरे स्थानीय मशीन timeZoneId "GMT मानक समय"कुछ दिनांक दिनांक मानों के लिए TimeZoneInfo.ConvertTimeToUtc जब अपवाद कॉलिंग
var tzi = TimeZoneInfo.FindSystemTimeZoneById("Central Standard Time");
var dt = new DateTime(1995, 4, 2, 2, 55, 0);
var t = TimeZoneInfo.ConvertTimeToUtc(dt, tzi);
है अपवाद है:
System.ArgumentException was unhandled
Message="The supplied DateTime represents an invalid time. For example, when the clock is adjusted forward, any time in the period that is skipped is invalid.\r\nParameter