2010-06-18 Vincent Povirk <madewokherd@gmail.com>
authorMiguel de Icaza <miguel@gnome.org>
Fri, 18 Jun 2010 23:36:52 +0000 (23:36 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Fri, 18 Jun 2010 23:36:52 +0000 (23:36 -0000)
commitdaf9939128c9ec1134881e077c99bf363ec1510a
tree3d6ce631337c3cf29e1d0d21d64ef416a5c43fac
parente179e5032352b6f99fa9469c42f7fce6d7b5833c
2010-06-18  Vincent Povirk <madewokherd@gmail.com>

        * TimeZoneInfo.cs: Applied patch from Vincent Povirk that adds
        support for reading time zone information on windows.

        This patch makes TimeZoneInfo.GetSystemTimeZones and
        FindSystemTimeZoneById work based on the registry on non-Unix
        platforms, if the appropriate registry key exists. Mono currently
        reads from /usr/share/zoneinfo, which doesn't exist on Windows.

        This should fix bug 606084.

        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 was modified from the previous version to not check the
        registry on Unix platforms. (Sorry it took me so long to do
        this. I have very little time to spend on Mono-related work.)

svn path=/trunk/mcs/; revision=159163
mcs/class/System.Core/System/ChangeLog
mcs/class/System.Core/System/TimeZoneInfo.cs