Bug #48902 [Asn->Csd]: datetimezone uses calcutta or kolkata

From: Date: Sun, 07 Mar 2010 18:24:04 +0000
Subject: Bug #48902 [Asn->Csd]: datetimezone uses calcutta or kolkata
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-148367@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=48902&edit=1

 ID:               48902
 Updated by:       derick@php.net
 Reported by:      husen at fiare dot fi
 Summary:          datetimezone uses calcutta or kolkata
-Status:           Assigned
+Status:           Closed
 Type:             Bug
 Package:          Date/time related
 Operating System: kubuntu
 PHP Version:      5.3.0
 Assigned To:      derick

 New Comment:

This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------
[2010-03-07 19:21:24] derick@php.net

Automatic comment from SVN on behalf of derick
Revision: http://svn.php.net/viewvc/?view=revision&revision=295937
Log: - Fixed bug #48902 (Timezone database fallback map is outdated).

------------------------------------------------------------------------
[2010-01-27 10:53:29] yoarvi at gmail dot com

Kolkata is the new/official name of Calcutta. The following patch
(against 5.3 SVN) fixes this:


Index: ext/date/lib/timezonemap.h
===================================================================
--- ext/date/lib/timezonemap.h	(revision 293574)
+++ ext/date/lib/timezonemap.h	(working copy)
@@ -292,7 +292,7 @@
 	{ "bst",   1,   3600, "GB-Eire"                       },
 	{ "btt",   0,  21600, "Asia/Thimbu"                   },
 	{ "btt",   0,  21600, "Asia/Thimphu"                  },
-	{ "burt",  0,  23400, "Asia/Calcutta"                 },
+	{ "burt",  0,  23400, "Asia/Kolkata"                  },
 	{ "burt",  0,  23400, "Asia/Dacca"                    },
 	{ "burt",  0,  23400, "Asia/Dhaka"                    },
 	{ "burt",  0,  23400, "Asia/Rangoon"                  },
@@ -1003,7 +1003,7 @@
 	{ "ist",   0,   7200, "Asia/Jerusalem"                },
 	{ "ist",   0,  -3600, "Atlantic/Reykjavik"            },
 	{ "ist",   0,  -3600, "Iceland"                       },
-	{ "ist",   0,  19800, "Asia/Calcutta"                 },
+	{ "ist",   0,  19800, "Asia/Kolkata"                  },
 	{ "ist",   0,  19800, "Asia/Colombo"                  },
 	{ "ist",   0,  19800, "Asia/Dacca"                    },
 	{ "ist",   0,  19800, "Asia/Dhaka"                    },
@@ -1013,7 +1013,7 @@
 	{ "ist",   0,  19800, "Asia/Thimphu"                  },
 	{ "ist",   1,   2079, "Eire"                          },
 	{ "ist",   1,   2079, "Europe/Dublin"                 },
-	{ "ist",   1,  23400, "Asia/Calcutta"                 },
+	{ "ist",   1,  23400, "Asia/Kolkata"                  },
 	{ "ist",   1,  23400, "Asia/Colombo"                  },
 	{ "ist",   1,  23400, "Asia/Karachi"                  },
 	{ "ist",   0,   3600, "Eire"                          },
Index: ext/date/lib/fallbackmap.h
===================================================================
--- ext/date/lib/fallbackmap.h	(revision 293574)
+++ ext/date/lib/fallbackmap.h	(working copy)
@@ -26,7 +26,7 @@
 	{ "msd",   1,    4,  "Europe/Moscow" },
 	{ "gst",   0,    4,  "Asia/Dubai" },
 	{ "pkt",   0,    5,  "Asia/Karachi" },
-	{ "ist",   0,  5.5,  "Asia/Calcutta" },
+	{ "ist",   0,  5.5,  "Asia/Kolkata" },
 	{ "npt",   0, 5.75,  "Asia/Katmandu" },
 	{ "yekt",  1,    6,  "Asia/Yekaterinburg" },
 	{ "novst", 1,    7,  "Asia/Novosibirsk" },

------------------------------------------------------------------------
[2009-07-13 08:31:02] derick@php.net

They are aliases of each other. Kolkata was only very recently added as
a preferred version of Calcutta. It seems that our "precedence table"
hasn't been updated.

------------------------------------------------------------------------
[2009-07-13 08:26:31] husen at fiare dot fi

Description:
------------
DateTimeZone::listIdentifiers returns [236] => Asia/Kolkata while
DateTimeZone::listAbbreviations() returns [timezone_id] =>
Asia/Calcutta

I mean former is using "Kolkata" while later is "Calcutta". It is not
supposed to be either one of the Kolkata or Calcutta for both of the
functions?

Regards 




------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=48902&edit=1


Thread (4 messages)

« previous php.bugs (#148367) next »