Bugzilla – Bug 492924
TimeZoneInfo.FromSerializedString Throws NotImplementedException
Last modified: 2010-04-13 12:51:52 UTC
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.53 Safari/525.19 I'm posting this bug with example code that works on Windows and could be used as a test case for implementation. I want to use code similar to this to support automatic adjustment of time zones during Daylight Savings in mojoPortal CMS. I don't want to break compatibility with Mono so I'm holding off on implementing this in mojoPortal for now but really hoping someone could implement this soon. I serialized all the time zones on my system into constants and want to be able to deserialize them from the constants. Reproducible: Always Steps to Reproduce: 1. See the attached .aspx page with inline code. 2. If you click the button on the page it will try to create the list of TimeZoneInfo objects but will throw NotImplemented on the first call to TimeZoneInfo.FromSerializedString 3. Actual Results: throws NotImplementedException Expected Results: builds a list of TimeZoneInfo objects by deserializing the string data and binds to the dropdown list in the page.
Created attachment 284545 [details] an aspx page with inline code example
ToSerializedStrint throws a NIE too