Skip to content

Commit 6f4f000

Browse files
committed
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.
1 parent d08aa19 commit 6f4f000

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/timezone/pgtz.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -699,9 +699,10 @@ static const struct
699699
"Cen. Australia Standard Time", "Cen. Australia Daylight Time",
700700
"Australia/Adelaide"
701701
}, /* (GMT+09:30) Adelaide */
702+
/* Central America (other than Mexico) generally does not observe DST */
702703
{
703704
"Central America Standard Time", "Central America Daylight Time",
704-
"CST6CDT"
705+
"CST6"
705706
}, /* (GMT-06:00) Central America */
706707
{
707708
"Central Asia Standard Time", "Central Asia Daylight Time",

0 commit comments

Comments
 (0)