]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix our mapping of Windows timezones for Central America.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 24 Sep 2011 02:12:36 +0000 (22:12 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 24 Sep 2011 02:13:35 +0000 (22:13 -0400)
commitd1d7560861bb868b492f30b599e3442a41bfb107
tree65bc7dd378bd9d656b3bfcade53a3531941df83e
parent07d306785ecf0b6c59dbb8fe0e112e3175e849e1
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.
src/timezone/pgtz.c