Skip to content

Commit 953c2c9

Browse files
committed
Update timezone mapping for Windows with new timezones added
in windows servicepacks. Fix timezone mapping for "Mexico 2"
1 parent c931c07 commit 953c2c9

File tree

1 file changed

+42
-4
lines changed

1 file changed

+42
-4
lines changed

src/timezone/pgtz.c

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
77
*
88
* IDENTIFICATION
9-
* $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.57 2008/01/01 19:46:01 momjian Exp $
9+
* $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.58 2008/02/11 19:55:11 mha Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -610,7 +610,7 @@ static const struct
610610
/*
611611
* This list was built from the contents of the registry at
612612
* HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time
613-
* Zones on Windows XP Professional SP1
613+
* Zones on Windows XP Professional SP2
614614
*
615615
* The zones have been matched to zic timezones by looking at the cities
616616
* listed in the win32 display name (in the comment here) in most cases.
@@ -635,6 +635,10 @@ static const struct
635635
"Arabic Standard Time", "Arabic Daylight Time",
636636
"Asia/Baghdad"
637637
}, /* (GMT+03:00) Baghdad */
638+
{
639+
"Armenian Standard Time", "Armenian Daylight Time",
640+
"Asia/Yerevan"
641+
}, /* (GMT+04:00) Yerevan */
638642
{
639643
"Atlantic Standard Time", "Atlantic Daylight Time",
640644
"Canada/Atlantic"
@@ -694,6 +698,11 @@ static const struct
694698
"Central Standard Time", "Central Daylight Time",
695699
"US/Central"
696700
}, /* (GMT-06:00) Central Time (US & Canada) */
701+
{
702+
"Central Standard Time (Mexico)", "Central Daylight Time (Mexico)",
703+
"America/Mexico_City"
704+
}, /* (GMT-06:00) Guadalajara, Mexico City,
705+
Monterrey - New */
697706
{
698707
"China Standard Time", "China Daylight Time",
699708
"Asia/Hong_Kong"
@@ -740,6 +749,10 @@ static const struct
740749
"Europe/Helsinki"
741750
}, /* (GMT+02:00) Helsinki, Kyiv, Riga, Sofia,
742751
* Tallinn, Vilnius */
752+
{
753+
"Georgian Standard Time", "Georgian Daylight Time",
754+
"Asia/Tbilisi"
755+
}, /* (GMT+03:00) Tbilisi */
743756
{
744757
"GMT Standard Time", "GMT Daylight Time",
745758
"Europe/London"
@@ -774,6 +787,10 @@ static const struct
774787
"Jerusalem Standard Time", "Jerusalem Daylight Time",
775788
"Asia/Jerusalem"
776789
}, /* (GMT+02:00) Jerusalem */
790+
{
791+
"Jordan Standard Time", "Jordan Daylight Time",
792+
"Asia/Amman"
793+
}, /* (GMT+02:00) Amman */
777794
{
778795
"Korea Standard Time", "Korea Daylight Time",
779796
"Asia/Seoul"
@@ -784,17 +801,30 @@ static const struct
784801
}, /* (GMT-06:00) Guadalajara, Mexico City,
785802
* Monterrey */
786803
{
787-
"Mexico Standard Time", "Mexico Daylight Time",
788-
"America/La_Paz"
804+
"Mexico Standard Time 2", "Mexico Daylight Time 2",
805+
"America/Chihuahua"
789806
}, /* (GMT-07:00) Chihuahua, La Paz, Mazatlan */
790807
{
791808
"Mid-Atlantic Standard Time", "Mid-Atlantic Daylight Time",
792809
"Atlantic/South_Georgia"
793810
}, /* (GMT-02:00) Mid-Atlantic */
811+
{
812+
"Middle East Standard Time", "Middle East Daylight Time",
813+
"Asia/Beirut"
814+
}, /* (GMT+02:00) Beirut */
815+
{
816+
"Montevideo Standard Time", "Montevideo Daylight Time",
817+
"America/Montevideo"
818+
}, /* (GMT-03:00) Montevideo */
794819
{
795820
"Mountain Standard Time", "Mountain Daylight Time",
796821
"US/Mountain"
797822
}, /* (GMT-07:00) Mountain Time (US & Canada) */
823+
{
824+
"Mountain Standard Time (Mexico)", "Mountain Daylight Time (Mexico)",
825+
"America/Chihuahua"
826+
}, /* (GMT-07:00) Chihuahua, La Paz,
827+
Mazatlan - New */
798828
{
799829
"Myanmar Standard Time", "Myanmar Daylight Time",
800830
"Asia/Rangoon"
@@ -803,6 +833,10 @@ static const struct
803833
"N. Central Asia Standard Time", "N. Central Asia Daylight Time",
804834
"Asia/Almaty"
805835
}, /* (GMT+06:00) Almaty, Novosibirsk */
836+
{
837+
"Namibia Standard Time", "Namibia Daylight Time",
838+
"Africa/Windhoek"
839+
}, /* (GMT+02:00) Windhoek */
806840
{
807841
"Nepal Standard Time", "Nepal Daylight Time",
808842
"Asia/Katmandu"
@@ -832,6 +866,10 @@ static const struct
832866
"US/Pacific"
833867
}, /* (GMT-08:00) Pacific Time (US & Canada);
834868
* Tijuana */
869+
{
870+
"Pacific Standard Time (Mexico)", "Pacific Daylight Time (Mexico)",
871+
"America/Tijuana"
872+
}, /* (GMT-08:00) Tijuana, Baja California */
835873
{
836874
"Romance Standard Time", "Romance Daylight Time",
837875
"Europe/Brussels"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy