[Mono-dev] [PATCH] Read timezones from the registry on Windows.

Vincent Povirk madewokherd at gmail.com
Sun May 16 20:23:40 EDT 2010

This patch makes TimeZoneInfo.GetSystemTimeZones and
FindSystemTimeZoneById work based on the registry on Windows. Mono
currently reads from /usr/share/zoneinfo, which doesn't exist on

This should fix bug 606084.

The code doesn't check whether it's running on (or compiled for)
Windows, just whether the appropriate registry key exists. I don't
know if that's the preferred way of doing things.

It won't fix the Local property on Windows. I think that requires a
Windows API call to get the id of the local timezone.

This patch is licensed under the MIT X11 license.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Read-timezones-from-the-registry-on-Windows.patch
Type: text/x-patch
Size: 8434 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100516/71b0eb28/attachment.bin 

More information about the Mono-devel-list mailing list