php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48902 datetimezone uses calcutta or kolkata
Submitted: 2009-07-13 08:26 UTC Modified: 2010-03-07 19:24 UTC
From: husen at fiare dot fi Assigned: derick (profile)
Status: Closed Package: Date/time related
PHP Version: 5.3.0 OS: kubuntu
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
25 - 8 = ?
Subscribe to this entry?

 
 [2009-07-13 08:26 UTC] 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 



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-13 08:31 UTC] 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.
 [2010-01-27 10:53 UTC] 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" },
 [2010-03-07 19:21 UTC] 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-03-07 19:24 UTC] derick@php.net
-Status: Assigned +Status: Closed
 [2010-03-07 19:24 UTC] derick@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 14:01:29 2024 UTC