©
Dokumen ini menggunakan Manual laman web PHP Cina Lepaskan
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/Chita | 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/Srednekolymsk | 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 |
[#1] Deta [2015-08-19 08:53:13]
Hi, I see Asia/Makassar and Asia/Ujung_Pandang in the list. They're both the same city in South Sulawesi, Indonesia. in 2000, government officially renamed Ujung Pandang to Makassar. I havent check Asia/Ujung_Pandang yet, but both should return GMT+08 value.
[#2] max-star at inbox dot ru [2015-07-30 05:35:02]
Hello! Please change the time zone value for the "Asia / Vladivostok" to GMT + 11 to GMT + 10. And consequently, all time zones of the Russian Federation in connection with that after the recent changes, time zones are based on the value of Russia Moscow time GMT + 3. Thanks!
[#3] frank at huddler-inc dot com [2014-02-18 20:42:56]
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";
}
[#4] sahadat5021 at gmail dot com [2013-10-01 05:33:00]
The time zone of Asia/Dhaka is +06. but php returns +07
[#5] firekillz[at]gmail[.]com [2013-09-11 10:18:58]
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
?>