Re: 002_types.pl fails on some timezones on windows
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Andrew Dunstan <andrew@dunslane.net>, Andres Freund <andres@anarazel.de>,
pgsql-hackers <pgsql-hackers@postgresql.org>,
Peter Eisentraut <peter_e@gmx.net>,
Petr Jelinek <petr@2ndquadrant.com>
Date: 2021-09-30T23:47:08Z
Lists: pgsql-hackers
Attachments
- windows-timezone-map-updates.patch (text/x-diff) patch
Thomas Munro <thomas.munro@gmail.com> writes: > Yes, it's been a while but IIRC Windows in the UK uses confusing > terminology here even in user interfaces, so that in summer it appears > to be wrong, which is annoying to anyone brought up on Eggert's > system. The CLDR windowsZones.xml file shows this. Oh, thanks for the pointer to CLDR! I tried re-generating our data based on theirs, and ended up with the attached draft patch. My notes summarizing the changes say: Choose Europe/London for "Greenwich Standard Time" (CLDR doesn't do this, but all their mappings for it are insane) Alphabetize a bit better Zone name changes: Jerusalem Standard Time -> Israel Standard Time Numerous Russian zones slightly renamed Should we preserve the old spellings of the above? It's not clear how long-obsolete the old spellings are. Maybe politically sensitive: Asia/Hong_Kong -> Asia/Shanghai I think the latter has way better claim on "China Standard Time", and CLDR agrees. Resolve Links to underlying real zones: Asia/Kuwait -> Asia/Riyadh Asia/Muscat -> Asia/Dubai Australia/Canberra -> Australia/Sydney Canada/Atlantic -> America/Halifax Canada/Newfoundland -> America/St_Johns Canada/Saskatchewan -> America/Regina US/Alaska -> America/Anchorage US/Arizona -> America/Phoenix US/Central -> America/Chicago US/Eastern -> America/New_York US/Hawaii -> Pacific/Honolulu US/Mountain -> America/Denver US/Pacific -> America/Los_Angeles Just plain wrong: US/Aleutan (misspelling of US/Aleutian, which is a link anyway) America/Salvador does not exist; tzdb says # There are too many Salvadors elsewhere, so use America/Bahia instead # of America/Salvador. Etc/UTC+12 doesn't exist in tzdb Indiana (East) is not the regular US/Eastern zone Asia/Baku -> Asia/Yerevan (Baku is in Azerbaijan, Yerevan is in Armenia) Asia/Dhaka -> Asia/Almaty (Dhaka has its own zone, and it's in Bangladesh not Astana) Europe/Sarajevo is a link to Europe/Belgrade these days, so use Warsaw Chisinau is in Moldova not Romania Chetumal is in Quintana Roo, which is represented by Cancun not Mexico City Haiti has its own zone America/Araguaina seems to just be a mistake; use Sao_Paulo America/Buenos_Aires for SA Eastern Standard Time is a mistake (it has its own zone) likewise America/Caracas for SA Western Standard Time Africa/Harare seems to be obsoleted by Africa/Johannesburg Karachi is in Pakistan, not Tashkent New Windows zones: "South Sudan Standard Time" -> Africa/Juba "West Bank Standard Time" -> Asia/Hebron (CLDR seem to have this replacing Gaza, but I kept that one too) "Yukon Standard Time" -> America/Whitehorse uncomment "W. Central Africa Standard Time" as Africa/Lagos regards, tom lane
Commits
-
Doc: improve timezone/README's recipe for tracking Windows zones.
- db692b0c8490 15.0 landed
-
Update our mapping of Windows time zone names some more.
- c1aa3b3c0d21 15.0 landed
- d0b0b70dc2a6 11.14 landed
- cd2479142588 10.19 landed
- c53ff69e1fd2 13.5 landed
- b5f34ae08ad2 9.6.24 landed
- 919c08d909f7 14.1 landed
- 07873a5dc925 12.9 landed
-
Update our mapping of Windows time zone names using CLDR info.
- dbec5a2fea4d 9.6.24 landed
- e323630cdd3c 10.19 landed
- 9cc919b51855 11.14 landed
- e5b25f19b37b 12.9 landed
- 9c76689de442 13.5 landed
- fa8db48791c5 14.1 landed
- 9b8d68cc6589 15.0 landed
-
Re-alphabetize the win32_tzmap[] array.
- 37cbe0f79129 9.6.24 landed
- cb0799db0d8e 10.19 landed
- bb6d426699a6 11.14 landed
- 4721e8aa6223 12.9 landed
- 7ba8eb81f6b7 13.5 landed
- 81464999bc92 14.1 landed
- ad740067aea5 15.0 landed
-
Remove gratuitous environment dependency in 002_types.pl test.
- d30d8257ec74 10.19 landed
- b46710dadf0c 11.14 landed
- f2cf745a038c 12.9 landed
- 649e561f65c5 13.5 landed
- afc6081f6ea8 14.1 landed
- 20f8671ef69b 15.0 landed