pgsql: Fix our mapping of Windows timezones for Central America.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix our mapping of Windows timezones for Central America.
Date: 2011-09-24 02:15:10
Message-ID: E1R7Hlm-0005M6-L6@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix our mapping of Windows timezones for Central America.

We were mapping "Central America Standard Time" to "CST6CDT", which seems
entirely wrong, because according to the Olson timezone database noplace
in Central America observes daylight savings time on any regular basis ---
and certainly not according to the USA DST rules that are implied by
"CST6CDT". (Mexico is an exception, but they can be disregarded since
they have a separate timezone name in Windows.) So, map this zone name to
plain "CST6", which will provide a fixed UTC offset.

As written, this patch will also result in mapping "Central America
Daylight Time" to CST6. I considered hacking things so that would still
map to CST6CDT, but it seems it would confuse win32tzlist.pl to put those
two names in separate entries. Since there's little evidence that any
such zone name is used in the wild, much less that CST6CDT would be a good
match for it, I'm not too worried about what we do with it.

Per complaint from Pratik Chirania.

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/23f7df5547d218b8e5f42b924c25625d1f1372a1

Modified Files
--------------
src/timezone/pgtz.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Magnus Hagander 2011-09-24 12:32:24 pgsql: Note that sslmode=require verifies the CA if root cert is presen
Previous Message Tom Lane 2011-09-24 01:42:32 pgsql: Update win32tzlist.pl for the new location of our Windows timezo