Missing win32 timezones

Started by Magnus Haganderalmost 16 years ago1 messages
#1Magnus Hagander
magnus@hagander.net
1 attachment(s)

When debugging the other timezone issue, I've come across a bunch of
timezones that are defined in Windows now (my check is 2003R2, which
is the newest one I have readily available) that aren't in our list.
This is because our list is based on Windows XP, and Microsoft have
pushed timezone updates since. Attached patch updates the list of
timezones.

Any reason not to backpatch this?

--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/

Attachments:

win32_missing_timezones.patchapplication/octet-stream; name=win32_missing_timezones.patchDownload
diff --git a/src/timezone/pgtz.c b/src/timezone/pgtz.c
index 9f2cc40..f5245bd 100644
--- a/src/timezone/pgtz.c
+++ b/src/timezone/pgtz.c
@@ -682,10 +682,18 @@ static const struct
 		"Australia/Canberra"
 	},							/* (GMT+10:00) Canberra, Melbourne, Sydney */
 	{
+		"Azerbaijan Standard Time", "Azerbaijan Daylight Time",
+		"Asia/Baku"
+	},							/* (GMT+04:00) Baku */
+	{
 		"Azores Standard Time", "Azores Daylight Time",
 		"Atlantic/Azores"
 	},							/* (GMT-01:00) Azores */
 	{
+		"Bangladesh Standard Time", "Bangladesh Daylight Time",
+		"Asia/Dhaka",
+	},							/* (GMT+06:00) Dhaka */
+	{
 		"Canada Central Standard Time", "Canada Central Daylight Time",
 		"Canada/Saskatchewan"
 	},							/* (GMT-06:00) Saskatchewan */
@@ -710,6 +718,10 @@ static const struct
 		"Asia/Dhaka"
 	},							/* (GMT+06:00) Astana, Dhaka */
 	{
+		"Central Brazilian Standard Time", "Central Brazilian Daylight Time",
+		"America/Cuiaba",
+	},							/* (GMT-04:00) Cuiaba */
+	{
 		"Central Europe Standard Time", "Central Europe Daylight Time",
 		"Europe/Belgrade"
 	},							/* (GMT+01:00) Belgrade, Bratislava, Budapest,
@@ -822,10 +834,18 @@ static const struct
 		"Asia/Amman"
 	},							/* (GMT+02:00) Amman */
 	{
+		"Kamchatka Standard Time", "Kamchatka Daylight Time",
+		"Asia/Kamchatka",
+	},							/* (GMT+12:00) Petropavlovsk-Kamchatsky */
+	{
 		"Korea Standard Time", "Korea Daylight Time",
 		"Asia/Seoul"
 	},							/* (GMT+09:00) Seoul */
 	{
+		"Mauritius Standard Time", "Mauritius Daylight Time",
+		"Indian/Mauritius",
+	},							/* (GMT+04:00) Port Louis */
+	{
 		"Mexico Standard Time", "Mexico Daylight Time",
 		"America/Mexico_City"
 	},							/* (GMT-06:00) Guadalajara, Mexico City,
@@ -847,6 +867,10 @@ static const struct
 		"America/Montevideo"
 	},							/* (GMT-03:00) Montevideo */
 	{
+		"Morocco Standard Time", "Morocco Daylight Time",
+		"Africa/Casablanca",
+	},							/* (GMT) Casablanca */
+	{
 		"Mountain Standard Time", "Mountain Daylight Time",
 		"US/Mountain"
 	},							/* (GMT-07:00) Mountain Time (US & Canada) */
@@ -901,6 +925,14 @@ static const struct
 		"America/Tijuana"
 	},							/* (GMT-08:00) Tijuana, Baja California */
 	{
+		"Pakistan Standard Time", "Pakistan Daylight Time",
+		"Asia/Karachi",
+	},							/* (GMT+05:00) Islamabad, Karachi */
+	{
+		"Paraguay Standard Time", "Paraguay Daylight Time",
+		"America/Asuncion",
+	},							/* (GMT-04:00) Asuncion */
+	{
 		"Romance Standard Time", "Romance Daylight Time",
 		"Europe/Brussels"
 	},							/* (GMT+01:00) Brussels, Copenhagen, Madrid,
@@ -959,6 +991,10 @@ static const struct
 		"Pacific/Tongatapu"
 	},							/* (GMT+13:00) Nuku'alofa */
 	{
+		"Ulaanbaatar Standard Time", "Ulaanbaatar Daylight Time",
+		"Asia/Ulaanbaatar",
+	},							/* (GMT+08:00) Ulaanbaatar */
+	{
 		"US Eastern Standard Time", "US Eastern Daylight Time",
 		"US/Eastern"
 	},							/* (GMT-05:00) Indiana (East) */
@@ -967,6 +1003,26 @@ static const struct
 		"US/Arizona"
 	},							/* (GMT-07:00) Arizona */
 	{
+		"Coordinated Universal Time", "Coordinated Universal Time",
+		"UTC"
+	},							/* (GMT) Coordinated Universal Time */
+	{
+		"UTC+12", "UTC+12",
+		"Etc/GMT+12"
+	},							/* (GMT+12:00) Coordinated Universal Time+12 */
+	{
+		"UTC-02", "UTC-02",
+		"Etc/GMT-02"
+	},							/* (GMT-02:00) Coordinated Universal Time-02 */
+	{
+		"UTC-11", "UTC-11",
+		"Etc/GMT-11"
+	},							/* (GMT-11:00) Coordinated Universal Time-11 */
+	{
+		"Venezuela Standard Time", "Venezuela Daylight Time",
+		"America/Caracas",
+	},							/* (GMT-04:30) Caracas */
+	{
 		"Vladivostok Standard Time", "Vladivostok Daylight Time",
 		"Asia/Vladivostok"
 	},							/* (GMT+10:00) Vladivostok */