Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4c5d837

Browse files
committed
Fix our mapping of Windows timezones for Central America.
We were mapping "Central America Standard Time" to "CST6CDT", which seemsentirely wrong, because according to the Olson timezone database noplacein 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 sincethey have a separate timezone name in Windows.) So, map this zone name toplain "CST6", which will provide a fixed UTC offset.As written, this patch will also result in mapping "Central AmericaDaylight Time" to CST6. I considered hacking things so that would stillmap to CST6CDT, but it seems it would confuse win32tzlist.pl to put thosetwo names in separate entries. Since there's little evidence that anysuch zone name is used in the wild, much less that CST6CDT would be a goodmatch for it, I'm not too worried about what we do with it.Per complaint from Pratik Chirania.
1 parent14a1832 commit4c5d837

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/bin/initdb/findtimezone.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,9 +658,10 @@ static const struct
658658
"Cen. Australia Standard Time","Cen. Australia Daylight Time",
659659
"Australia/Adelaide"
660660
},/* (GMT+09:30) Adelaide */
661+
/* Central America (other than Mexico) generally does not observe DST */
661662
{
662663
"Central America Standard Time","Central America Daylight Time",
663-
"CST6CDT"
664+
"CST6"
664665
},/* (GMT-06:00) Central America */
665666
{
666667
"Central Asia Standard Time","Central Asia Daylight Time",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp