]> granicus.if.org Git - postgresql/commit
This patch attempts to fix the issue with localized timezones on
authorBruce Momjian <bruce@momjian.us>
Thu, 2 Sep 2004 01:03:59 +0000 (01:03 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 2 Sep 2004 01:03:59 +0000 (01:03 +0000)
commit525449be272695aa53ef2959bf4a66e9b5c47555
tree380513877add095c7e9ce8e3e5e4b95e86b8ed75
parent528ac10c7c73883f5b12db2f7bd627652f869bab
This patch attempts to fix the issue with localized timezones on
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
src/timezone/pgtz.c