• Bruce Momjian's avatar
    This patch attempts to fix the issue with localized timezones on · 525449be
    Bruce Momjian authored
    Windows.
    
    Recap: When running on a localized windows version, the timezone name
    returned is also localized, and therefor does not match our lookup
    table.
    
    Solution: The registry contains both the name of the timezone in english
    and the localized name. The patch adds code to scan the registry for the
    localized name and gets the english name from that, and then rescans the
    table.
    
    I have tested this on a Swedish WinXP, and it works without problems.
    The registry layout is the same in Win2k, but I haven't specifically
    tested it. It's also the same on different languages but again only
    Swedish is tested.
    
    Magnus Hagander
    525449be
pgtz.c 31.5 KB