PHP 5.4.31 Released

Asia

Asia
Asia/Aden Asia/Almaty Asia/Amman Asia/Anadyr Asia/Aqtau
Asia/Aqtobe Asia/Ashgabat Asia/Ashkhabad Asia/Baghdad Asia/Bahrain
Asia/Baku Asia/Bangkok Asia/Beirut Asia/Bishkek Asia/Brunei
Asia/Calcutta Asia/Choibalsan Asia/Chongqing Asia/Chungking Asia/Colombo
Asia/Dacca Asia/Damascus Asia/Dhaka Asia/Dili Asia/Dubai
Asia/Dushanbe Asia/Gaza Asia/Harbin Asia/Hebron Asia/Ho_Chi_Minh
Asia/Hong_Kong Asia/Hovd Asia/Irkutsk Asia/Istanbul Asia/Jakarta
Asia/Jayapura Asia/Jerusalem Asia/Kabul Asia/Kamchatka Asia/Karachi
Asia/Kashgar Asia/Kathmandu Asia/Katmandu Asia/Khandyga Asia/Kolkata
Asia/Krasnoyarsk Asia/Kuala_Lumpur Asia/Kuching Asia/Kuwait Asia/Macao
Asia/Macau Asia/Magadan Asia/Makassar Asia/Manila Asia/Muscat
Asia/Nicosia Asia/Novokuznetsk Asia/Novosibirsk Asia/Omsk Asia/Oral
Asia/Phnom_Penh Asia/Pontianak Asia/Pyongyang Asia/Qatar Asia/Qyzylorda
Asia/Rangoon Asia/Riyadh Asia/Saigon Asia/Sakhalin Asia/Samarkand
Asia/Seoul Asia/Shanghai Asia/Singapore Asia/Taipei Asia/Tashkent
Asia/Tbilisi Asia/Tehran Asia/Tel_Aviv Asia/Thimbu Asia/Thimphu
Asia/Tokyo Asia/Ujung_Pandang Asia/Ulaanbaatar Asia/Ulan_Bator Asia/Urumqi
Asia/Ust-Nera Asia/Vientiane Asia/Vladivostok Asia/Yakutsk Asia/Yekaterinburg
Asia/Yerevan        
add a note add a note

User Contributed Notes 3 notes

up
-7
firekillz[at]gmail[.]com
10 months ago
I've tested "Asia/Calcutta" as well as "Asia/Kolkata" on PHP 5.4.7 and both returns accurate results.

But I would suggest you to use "Asia/Kolkata" as "Calcutta" is now renamed to "Kolkata".

<?php
    date_default_timezone_set
("Asia/Kolkata");
    echo
date('d-m-Y H:i:s'); //Returns IST
?>
up
-12
frank at huddler-inc dot com
5 months ago
Asia/Kolkata was added in PHP 5.2.6

Asia/Calcutta was removed in PHP 5.3.0

http://3v4l.org/j1kGV

<?php
foreach(array("Asia/Calcutta", "Asia/Kolkata") as $tz) {
    echo
$tz,"=", (int)in_array($tz, timezone_identifiers_list()), "\n";
}

/*
Output for 5.3.0 - 5.6.0alpha1
Asia/Calcutta=0
Asia/Kolkata=1

Output for 5.2.6 - 5.2.17
Asia/Calcutta=1
Asia/Kolkata=1

Output for 5.2.0 - 5.2.5
Asia/Calcutta=1
Asia/Kolkata=0
*/
up
-28
sahadat5021 at gmail dot com
9 months ago
The time zone of Asia/Dhaka is +06. but php returns +07
To Top