Bug 492924

Summary: TimeZoneInfo.FromSerializedString Throws NotImplementedException
Product: [Mono] Mono: Class Libraries Reporter: Joe Audette <joe_audette>
Component: Sys.CoreAssignee: Mono Bugs <mono-bugs>
Status: NEW --- QA Contact: Mono Bugs <mono-bugs>
Severity: Normal    
Priority: P5 - None    
Version: SVN   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: an aspx page with inline code example

Description Joe Audette 2009-04-07 16:28: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.
Comment 1 Joe Audette 2009-04-07 16:30:31 UTC
Created attachment 284545 [details]
an aspx page with inline code example
Comment 2 Stephane Delcroix 2009-04-22 14:10:22 UTC
ToSerializedStrint throws a NIE too