ID:               48902
 Comment by:       yoarvi at gmail dot com
 Reported By:      husen at fiare dot fi
 Status:           Assigned
 Bug Type:         Date/time related
 Operating System: kubuntu
 PHP Version:      5.3.0
 Assigned To:      derick
 New Comment:

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" },


Previous Comments:
------------------------------------------------------------------------

[2009-07-13 08:31:02] der...@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/?id=48902&edit=1

Reply via email to