php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77874 Incorrect offset given in "(DateTimeZone())->getOffset()"
Submitted: 2019-04-09 20:07 UTC Modified: 2020-02-28 16:14 UTC
Votes:2
Avg. Score:3.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: pwiejak at iccsafe dot org Assigned: cmb (profile)
Status: Not a bug Package: Date/time related
PHP Version: PHP 7.3.2 (cli) (built: Feb 15 2019 18:36:52) ( NTS ) OS: Amazon Linux AMI 2018.03
Private report: No CVE-ID: None
 [2019-04-09 20:07 UTC] pwiejak at iccsafe dot org
Description:
------------
PHP 7.3.2 (cli) (built: Feb 15 2019 18:36:52) ( NTS )

TimeZone offset always return "0".

Test script:
---------------
<?php
echo '<ol>';
foreach (DateTimeZone::listIdentifiers() as $timezone) {
    $parts = explode('/', $timezone);

    $dateTimeZone = new DateTimeZone($timezone);
    $offset       = $dateTimeZone->getOffset(new DateTime());
    if (count($parts) > 1) {
        $name = sprintf(' %s (%s)', $timezone, $offset);
    } else {
        $name = sprintf(' %s (%s)', 'Other', $offset);
    }
    echo "<li>{$name}</li>";
}
echo '</ol>';
?>

Expected result:
----------------
     Africa/Abidjan (0)
    Africa/Accra (0)
    Africa/Addis_Ababa (10800)
    Africa/Algiers (3600)
    Africa/Asmara (10800)
    Africa/Bamako (0)
    Africa/Bangui (3600)
    Africa/Banjul (0)
    Africa/Bissau (0)
    Africa/Blantyre (7200)
    Africa/Brazzaville (3600)
    Africa/Bujumbura (7200)
    Africa/Cairo (7200)
    Africa/Casablanca (3600)
    Africa/Ceuta (7200)
    Africa/Conakry (0)
    Africa/Dakar (0)
    Africa/Dar_es_Salaam (10800)
    Africa/Djibouti (10800)
    Africa/Douala (3600)
    Africa/El_Aaiun (3600)
    Africa/Freetown (0)
    Africa/Gaborone (7200)
    Africa/Harare (7200)
    Africa/Johannesburg (7200)
    Africa/Juba (10800)
    Africa/Kampala (10800)
    Africa/Khartoum (7200)
    Africa/Kigali (7200)
    Africa/Kinshasa (3600)
    Africa/Lagos (3600)
    Africa/Libreville (3600)
    Africa/Lome (0)
    Africa/Luanda (3600)
    Africa/Lubumbashi (7200)
    Africa/Lusaka (7200)
    Africa/Malabo (3600)
    Africa/Maputo (7200)
    Africa/Maseru (7200)
    Africa/Mbabane (7200)
    Africa/Mogadishu (10800)
    Africa/Monrovia (0)
    Africa/Nairobi (10800)
    Africa/Ndjamena (3600)
    Africa/Niamey (3600)
    Africa/Nouakchott (0)
    Africa/Ouagadougou (0)
    Africa/Porto-Novo (3600)
    Africa/Sao_Tome (0)
    Africa/Tripoli (7200)
    Africa/Tunis (3600)
    Africa/Windhoek (7200)
    America/Adak (-32400)
    America/Anchorage (-28800)
    America/Anguilla (-14400)
    America/Antigua (-14400)
    America/Araguaina (-10800)
    America/Argentina/Buenos_Aires (-10800)
    America/Argentina/Catamarca (-10800)
    America/Argentina/Cordoba (-10800)
    America/Argentina/Jujuy (-10800)
    America/Argentina/La_Rioja (-10800)
    America/Argentina/Mendoza (-10800)
    America/Argentina/Rio_Gallegos (-10800)
    America/Argentina/Salta (-10800)
    America/Argentina/San_Juan (-10800)
    America/Argentina/San_Luis (-10800)
    America/Argentina/Tucuman (-10800)
    America/Argentina/Ushuaia (-10800)
    America/Aruba (-14400)
    America/Asuncion (-14400)
    America/Atikokan (-18000)
    America/Bahia (-10800)
    America/Bahia_Banderas (-18000)
    America/Barbados (-14400)
    America/Belem (-10800)
    America/Belize (-21600)
    America/Blanc-Sablon (-14400)
    America/Boa_Vista (-14400)
    America/Bogota (-18000)
    America/Boise (-21600)
    America/Cambridge_Bay (-21600)
    America/Campo_Grande (-14400)
    America/Cancun (-18000)
    America/Caracas (-14400)
    America/Cayenne (-10800)
    America/Cayman (-18000)
    America/Chicago (-18000)
    America/Chihuahua (-21600)
    America/Costa_Rica (-21600)
    America/Creston (-25200)
    America/Cuiaba (-14400)
    America/Curacao (-14400)
    America/Danmarkshavn (0)
    America/Dawson (-25200)
    America/Dawson_Creek (-25200)
    America/Denver (-21600)
    America/Detroit (-14400)
    America/Dominica (-14400)
    America/Edmonton (-21600)
    America/Eirunepe (-18000)
    America/El_Salvador (-21600)
    America/Fort_Nelson (-25200)
    America/Fortaleza (-10800)
    America/Glace_Bay (-10800)
    America/Godthab (-7200)
    America/Goose_Bay (-10800)
    America/Grand_Turk (-14400)
    America/Grenada (-14400)
    America/Guadeloupe (-14400)
    America/Guatemala (-21600)
    America/Guayaquil (-18000)
    America/Guyana (-14400)
    America/Halifax (-10800)
    America/Havana (-14400)
    America/Hermosillo (-25200)
    America/Indiana/Indianapolis (-14400)
    America/Indiana/Knox (-18000)
    America/Indiana/Marengo (-14400)
    America/Indiana/Petersburg (-14400)
    America/Indiana/Tell_City (-18000)
    America/Indiana/Vevay (-14400)
    America/Indiana/Vincennes (-14400)
    America/Indiana/Winamac (-14400)
    America/Inuvik (-21600)
    America/Iqaluit (-14400)
    America/Jamaica (-18000)
    America/Juneau (-28800)
    America/Kentucky/Louisville (-14400)
    America/Kentucky/Monticello (-14400)
    America/Kralendijk (-14400)
    America/La_Paz (-14400)
    America/Lima (-18000)
    America/Los_Angeles (-25200)
    America/Lower_Princes (-14400)
    America/Maceio (-10800)
    America/Managua (-21600)
    America/Manaus (-14400)
    America/Marigot (-14400)
    America/Martinique (-14400)
    America/Matamoros (-18000)
    America/Mazatlan (-21600)
    America/Menominee (-18000)
    America/Merida (-18000)
    America/Metlakatla (-28800)
    America/Mexico_City (-18000)
    America/Miquelon (-7200)
    America/Moncton (-10800)
    America/Monterrey (-18000)
    America/Montevideo (-10800)
    America/Montserrat (-14400)
    America/Nassau (-14400)
    America/New_York (-14400)
    America/Nipigon (-14400)
    America/Nome (-28800)
    America/Noronha (-7200)
    America/North_Dakota/Beulah (-18000)
    America/North_Dakota/Center (-18000)
    America/North_Dakota/New_Salem (-18000)
    America/Ojinaga (-21600)
    America/Panama (-18000)
    America/Pangnirtung (-14400)
    America/Paramaribo (-10800)
    America/Phoenix (-25200)
    America/Port-au-Prince (-14400)
    America/Port_of_Spain (-14400)
    America/Porto_Velho (-14400)
    America/Puerto_Rico (-14400)
    America/Punta_Arenas (-10800)
    America/Rainy_River (-18000)
    America/Rankin_Inlet (-18000)
    America/Recife (-10800)
    America/Regina (-21600)
    America/Resolute (-18000)
    America/Rio_Branco (-18000)
    America/Santarem (-10800)
    America/Santiago (-14400)
    America/Santo_Domingo (-14400)
    America/Sao_Paulo (-10800)
    America/Scoresbysund (0)
    America/Sitka (-28800)
    America/St_Barthelemy (-14400)
    America/St_Johns (-9000)
    America/St_Kitts (-14400)
    America/St_Lucia (-14400)
    America/St_Thomas (-14400)
    America/St_Vincent (-14400)
    America/Swift_Current (-21600)
    America/Tegucigalpa (-21600)
    America/Thule (-10800)
    America/Thunder_Bay (-14400)
    America/Tijuana (-25200)
    America/Toronto (-14400)
    America/Tortola (-14400)
    America/Vancouver (-25200)
    America/Whitehorse (-25200)
    America/Winnipeg (-18000)
    America/Yakutat (-28800)
    America/Yellowknife (-21600)
    Antarctica/Casey (28800)
    Antarctica/Davis (25200)
    Antarctica/DumontDUrville (36000)
    Antarctica/Macquarie (39600)
    Antarctica/Mawson (18000)
    Antarctica/McMurdo (43200)
    Antarctica/Palmer (-10800)
    Antarctica/Rothera (-10800)
    Antarctica/Syowa (10800)
    Antarctica/Troll (7200)
    Antarctica/Vostok (21600)
    Arctic/Longyearbyen (7200)
    Asia/Aden (10800)
    Asia/Almaty (21600)
    Asia/Amman (10800)
    Asia/Anadyr (43200)
    Asia/Aqtau (18000)
    Asia/Aqtobe (18000)
    Asia/Ashgabat (18000)
    Asia/Atyrau (18000)
    Asia/Baghdad (10800)
    Asia/Bahrain (10800)
    Asia/Baku (14400)
    Asia/Bangkok (25200)
    Asia/Barnaul (25200)
    Asia/Beirut (10800)
    Asia/Bishkek (21600)
    Asia/Brunei (28800)
    Asia/Chita (32400)
    Asia/Choibalsan (28800)
    Asia/Colombo (19800)
    Asia/Damascus (10800)
    Asia/Dhaka (21600)
    Asia/Dili (32400)
    Asia/Dubai (14400)
    Asia/Dushanbe (18000)
    Asia/Famagusta (10800)
    Asia/Gaza (10800)
    Asia/Hebron (10800)
    Asia/Ho_Chi_Minh (25200)
    Asia/Hong_Kong (28800)
    Asia/Hovd (25200)
    Asia/Irkutsk (28800)
    Asia/Jakarta (25200)
    Asia/Jayapura (32400)
    Asia/Jerusalem (10800)
    Asia/Kabul (16200)
    Asia/Kamchatka (43200)
    Asia/Karachi (18000)
    Asia/Kathmandu (20700)
    Asia/Khandyga (32400)
    Asia/Kolkata (19800)
    Asia/Krasnoyarsk (25200)
    Asia/Kuala_Lumpur (28800)
    Asia/Kuching (28800)
    Asia/Kuwait (10800)
    Asia/Macau (28800)
    Asia/Magadan (39600)
    Asia/Makassar (28800)
    Asia/Manila (28800)
    Asia/Muscat (14400)
    Asia/Nicosia (10800)
    Asia/Novokuznetsk (25200)
    Asia/Novosibirsk (25200)
    Asia/Omsk (21600)
    Asia/Oral (18000)
    Asia/Phnom_Penh (25200)
    Asia/Pontianak (25200)
    Asia/Pyongyang (32400)
    Asia/Qatar (10800)
    Asia/Qostanay (21600)
    Asia/Qyzylorda (18000)
    Asia/Riyadh (10800)
    Asia/Sakhalin (39600)
    Asia/Samarkand (18000)
    Asia/Seoul (32400)
    Asia/Shanghai (28800)
    Asia/Singapore (28800)
    Asia/Srednekolymsk (39600)
    Asia/Taipei (28800)
    Asia/Tashkent (18000)
    Asia/Tbilisi (14400)
    Asia/Tehran (16200)
    Asia/Thimphu (21600)
    Asia/Tokyo (32400)
    Asia/Tomsk (25200)
    Asia/Ulaanbaatar (28800)
    Asia/Urumqi (21600)
    Asia/Ust-Nera (36000)
    Asia/Vientiane (25200)
    Asia/Vladivostok (36000)
    Asia/Yakutsk (32400)
    Asia/Yangon (23400)
    Asia/Yekaterinburg (18000)
    Asia/Yerevan (14400)
    Atlantic/Azores (0)
    Atlantic/Bermuda (-10800)
    Atlantic/Canary (3600)
    Atlantic/Cape_Verde (-3600)
    Atlantic/Faroe (3600)
    Atlantic/Madeira (3600)
    Atlantic/Reykjavik (0)
    Atlantic/South_Georgia (-7200)
    Atlantic/St_Helena (0)
    Atlantic/Stanley (-10800)
    Australia/Adelaide (34200)
    Australia/Brisbane (36000)
    Australia/Broken_Hill (34200)
    Australia/Currie (36000)
    Australia/Darwin (34200)
    Australia/Eucla (31500)
    Australia/Hobart (36000)
    Australia/Lindeman (36000)
    Australia/Lord_Howe (37800)
    Australia/Melbourne (36000)
    Australia/Perth (28800)
    Australia/Sydney (36000)
    Europe/Amsterdam (7200)
    Europe/Andorra (7200)
    Europe/Astrakhan (14400)
    Europe/Athens (10800)
    Europe/Belgrade (7200)
    Europe/Berlin (7200)
    Europe/Bratislava (7200)
    Europe/Brussels (7200)
    Europe/Bucharest (10800)
    Europe/Budapest (7200)
    Europe/Busingen (7200)
    Europe/Chisinau (10800)
    Europe/Copenhagen (7200)
    Europe/Dublin (3600)
    Europe/Gibraltar (7200)
    Europe/Guernsey (3600)
    Europe/Helsinki (10800)
    Europe/Isle_of_Man (3600)
    Europe/Istanbul (10800)
    Europe/Jersey (3600)
    Europe/Kaliningrad (7200)
    Europe/Kiev (10800)
    Europe/Kirov (10800)
    Europe/Lisbon (3600)
    Europe/Ljubljana (7200)
    Europe/London (3600)
    Europe/Luxembourg (7200)
    Europe/Madrid (7200)
    Europe/Malta (7200)
    Europe/Mariehamn (10800)
    Europe/Minsk (10800)
    Europe/Monaco (7200)
    Europe/Moscow (10800)
    Europe/Oslo (7200)
    Europe/Paris (7200)
    Europe/Podgorica (7200)
    Europe/Prague (7200)
    Europe/Riga (10800)
    Europe/Rome (7200)
    Europe/Samara (14400)
    Europe/San_Marino (7200)
    Europe/Sarajevo (7200)
    Europe/Saratov (14400)
    Europe/Simferopol (10800)
    Europe/Skopje (7200)
    Europe/Sofia (10800)
    Europe/Stockholm (7200)
    Europe/Tallinn (10800)
    Europe/Tirane (7200)
    Europe/Ulyanovsk (14400)
    Europe/Uzhgorod (10800)
    Europe/Vaduz (7200)
    Europe/Vatican (7200)
    Europe/Vienna (7200)
    Europe/Vilnius (10800)
    Europe/Volgograd (14400)
    Europe/Warsaw (7200)
    Europe/Zagreb (7200)
    Europe/Zaporozhye (10800)
    Europe/Zurich (7200)
    Indian/Antananarivo (10800)
    Indian/Chagos (21600)
    Indian/Christmas (25200)
    Indian/Cocos (23400)
    Indian/Comoro (10800)
    Indian/Kerguelen (18000)
    Indian/Mahe (14400)
    Indian/Maldives (18000)
    Indian/Mauritius (14400)
    Indian/Mayotte (10800)
    Indian/Reunion (14400)
    Pacific/Apia (46800)
    Pacific/Auckland (43200)
    Pacific/Bougainville (39600)
    Pacific/Chatham (45900)
    Pacific/Chuuk (36000)
    Pacific/Easter (-21600)
    Pacific/Efate (39600)
    Pacific/Enderbury (46800)
    Pacific/Fakaofo (46800)
    Pacific/Fiji (43200)
    Pacific/Funafuti (43200)
    Pacific/Galapagos (-21600)
    Pacific/Gambier (-32400)
    Pacific/Guadalcanal (39600)
    Pacific/Guam (36000)
    Pacific/Honolulu (-36000)
    Pacific/Kiritimati (50400)
    Pacific/Kosrae (39600)
    Pacific/Kwajalein (43200)
    Pacific/Majuro (43200)
    Pacific/Marquesas (-34200)
    Pacific/Midway (-39600)
    Pacific/Nauru (43200)
    Pacific/Niue (-39600)
    Pacific/Norfolk (39600)
    Pacific/Noumea (39600)
    Pacific/Pago_Pago (-39600)
    Pacific/Palau (32400)
    Pacific/Pitcairn (-28800)
    Pacific/Pohnpei (39600)
    Pacific/Port_Moresby (36000)
    Pacific/Rarotonga (-36000)
    Pacific/Saipan (36000)
    Pacific/Tahiti (-36000)
    Pacific/Tarawa (43200)
    Pacific/Tongatapu (46800)
    Pacific/Wake (43200)
    Pacific/Wallis (43200)
    Other (0)

Actual result:
--------------
    Africa/Abidjan (0)
    Africa/Accra (0)
    Africa/Addis_Ababa (0)
    Africa/Algiers (0)
    Africa/Asmara (0)
    Africa/Bamako (0)
    Africa/Bangui (0)
    Africa/Banjul (0)
    Africa/Bissau (0)
    Africa/Blantyre (0)
    Africa/Brazzaville (0)
    Africa/Bujumbura (0)
    Africa/Cairo (0)
    Africa/Casablanca (0)
    Africa/Ceuta (0)
    Africa/Conakry (0)
    Africa/Dakar (0)
    Africa/Dar_es_Salaam (0)
    Africa/Djibouti (0)
    Africa/Douala (0)
    Africa/El_Aaiun (0)
    Africa/Freetown (0)
    Africa/Gaborone (0)
    Africa/Harare (0)
    Africa/Johannesburg (0)
    Africa/Juba (0)
    Africa/Kampala (0)
    Africa/Khartoum (0)
    Africa/Kigali (0)
    Africa/Kinshasa (0)
    Africa/Lagos (0)
    Africa/Libreville (0)
    Africa/Lome (0)
    Africa/Luanda (0)
    Africa/Lubumbashi (0)
    Africa/Lusaka (0)
    Africa/Malabo (0)
    Africa/Maputo (0)
    Africa/Maseru (0)
    Africa/Mbabane (0)
    Africa/Mogadishu (0)
    Africa/Monrovia (0)
    Africa/Nairobi (0)
    Africa/Ndjamena (0)
    Africa/Niamey (0)
    Africa/Nouakchott (0)
    Africa/Ouagadougou (0)
    Africa/Porto-Novo (0)
    Africa/Sao_Tome (0)
    Africa/Tripoli (0)
    Africa/Tunis (0)
    Africa/Windhoek (0)
    America/Adak (0)
    America/Anchorage (0)
    America/Anguilla (0)
    America/Antigua (0)
    America/Araguaina (0)
    America/Argentina/Buenos_Aires (0)
    America/Argentina/Catamarca (0)
    America/Argentina/Cordoba (0)
    America/Argentina/Jujuy (0)
    America/Argentina/La_Rioja (0)
    America/Argentina/Mendoza (0)
    America/Argentina/Rio_Gallegos (0)
    America/Argentina/Salta (0)
    America/Argentina/San_Juan (0)
    America/Argentina/San_Luis (0)
    America/Argentina/Tucuman (0)
    America/Argentina/Ushuaia (0)
    America/Aruba (0)
    America/Asuncion (0)
    America/Atikokan (0)
    America/Bahia (0)
    America/Bahia_Banderas (0)
    America/Barbados (0)
    America/Belem (0)
    America/Belize (0)
    America/Blanc-Sablon (0)
    America/Boa_Vista (0)
    America/Bogota (0)
    America/Boise (0)
    America/Cambridge_Bay (0)
    America/Campo_Grande (0)
    America/Cancun (0)
    America/Caracas (0)
    America/Cayenne (0)
    America/Cayman (0)
    America/Chicago (0)
    America/Chihuahua (0)
    America/Costa_Rica (0)
    America/Creston (0)
    America/Cuiaba (0)
    America/Curacao (0)
    America/Danmarkshavn (0)
    America/Dawson (0)
    America/Dawson_Creek (0)
    America/Denver (0)
    America/Detroit (0)
    America/Dominica (0)
    America/Edmonton (0)
    America/Eirunepe (0)
    America/El_Salvador (0)
    America/Fort_Nelson (0)
    America/Fortaleza (0)
    America/Glace_Bay (0)
    America/Godthab (0)
    America/Goose_Bay (0)
    America/Grand_Turk (0)
    America/Grenada (0)
    America/Guadeloupe (0)
    America/Guatemala (0)
    America/Guayaquil (0)
    America/Guyana (0)
    America/Halifax (0)
    America/Havana (0)
    America/Hermosillo (0)
    America/Indiana/Indianapolis (0)
    America/Indiana/Knox (0)
    America/Indiana/Marengo (0)
    America/Indiana/Petersburg (0)
    America/Indiana/Tell_City (0)
    America/Indiana/Vevay (0)
    America/Indiana/Vincennes (0)
    America/Indiana/Winamac (0)
    America/Inuvik (0)
    America/Iqaluit (0)
    America/Jamaica (0)
    America/Juneau (0)
    America/Kentucky/Louisville (0)
    America/Kentucky/Monticello (0)
    America/Kralendijk (0)
    America/La_Paz (0)
    America/Lima (0)
    America/Los_Angeles (0)
    America/Lower_Princes (0)
    America/Maceio (0)
    America/Managua (0)
    America/Manaus (0)
    America/Marigot (0)
    America/Martinique (0)
    America/Matamoros (0)
    America/Mazatlan (0)
    America/Menominee (0)
    America/Merida (0)
    America/Metlakatla (0)
    America/Mexico_City (0)
    America/Miquelon (0)
    America/Moncton (0)
    America/Monterrey (0)
    America/Montevideo (0)
    America/Montserrat (0)
    America/Nassau (0)
    America/New_York (0)
    America/Nipigon (0)
    America/Nome (0)
    America/Noronha (0)
    America/North_Dakota/Beulah (0)
    America/North_Dakota/Center (0)
    America/North_Dakota/New_Salem (0)
    America/Ojinaga (0)
    America/Panama (0)
    America/Pangnirtung (0)
    America/Paramaribo (0)
    America/Phoenix (0)
    America/Port-au-Prince (0)
    America/Port_of_Spain (0)
    America/Porto_Velho (0)
    America/Puerto_Rico (0)
    America/Punta_Arenas (0)
    America/Rainy_River (0)
    America/Rankin_Inlet (0)
    America/Recife (0)
    America/Regina (0)
    America/Resolute (0)
    America/Rio_Branco (0)
    America/Santarem (0)
    America/Santiago (0)
    America/Santo_Domingo (0)
    America/Sao_Paulo (0)
    America/Scoresbysund (0)
    America/Sitka (0)
    America/St_Barthelemy (0)
    America/St_Johns (0)
    America/St_Kitts (0)
    America/St_Lucia (0)
    America/St_Thomas (0)
    America/St_Vincent (0)
    America/Swift_Current (0)
    America/Tegucigalpa (0)
    America/Thule (0)
    America/Thunder_Bay (0)
    America/Tijuana (0)
    America/Toronto (0)
    America/Tortola (0)
    America/Vancouver (0)
    America/Whitehorse (0)
    America/Winnipeg (0)
    America/Yakutat (0)
    America/Yellowknife (0)
    Antarctica/Casey (0)
    Antarctica/Davis (0)
    Antarctica/DumontDUrville (0)
    Antarctica/Macquarie (0)
    Antarctica/Mawson (0)
    Antarctica/McMurdo (0)
    Antarctica/Palmer (0)
    Antarctica/Rothera (0)
    Antarctica/Syowa (0)
    Antarctica/Troll (0)
    Antarctica/Vostok (0)
    Arctic/Longyearbyen (0)
    Asia/Aden (0)
    Asia/Almaty (0)
    Asia/Amman (0)
    Asia/Anadyr (0)
    Asia/Aqtau (0)
    Asia/Aqtobe (0)
    Asia/Ashgabat (0)
    Asia/Atyrau (0)
    Asia/Baghdad (0)
    Asia/Bahrain (0)
    Asia/Baku (0)
    Asia/Bangkok (0)
    Asia/Barnaul (0)
    Asia/Beirut (0)
    Asia/Bishkek (0)
    Asia/Brunei (0)
    Asia/Chita (0)
    Asia/Choibalsan (0)
    Asia/Colombo (0)
    Asia/Damascus (0)
    Asia/Dhaka (0)
    Asia/Dili (0)
    Asia/Dubai (0)
    Asia/Dushanbe (0)
    Asia/Famagusta (0)
    Asia/Gaza (0)
    Asia/Hebron (0)
    Asia/Ho_Chi_Minh (0)
    Asia/Hong_Kong (0)
    Asia/Hovd (0)
    Asia/Irkutsk (0)
    Asia/Jakarta (0)
    Asia/Jayapura (0)
    Asia/Jerusalem (0)
    Asia/Kabul (0)
    Asia/Kamchatka (0)
    Asia/Karachi (0)
    Asia/Kathmandu (0)
    Asia/Khandyga (0)
    Asia/Kolkata (0)
    Asia/Krasnoyarsk (0)
    Asia/Kuala_Lumpur (0)
    Asia/Kuching (0)
    Asia/Kuwait (0)
    Asia/Macau (0)
    Asia/Magadan (0)
    Asia/Makassar (0)
    Asia/Manila (0)
    Asia/Muscat (0)
    Asia/Nicosia (0)
    Asia/Novokuznetsk (0)
    Asia/Novosibirsk (0)
    Asia/Omsk (0)
    Asia/Oral (0)
    Asia/Phnom_Penh (0)
    Asia/Pontianak (0)
    Asia/Pyongyang (0)
    Asia/Qatar (0)
    Asia/Qyzylorda (0)
    Asia/Riyadh (0)
    Asia/Sakhalin (0)
    Asia/Samarkand (0)
    Asia/Seoul (0)
    Asia/Shanghai (0)
    Asia/Singapore (0)
    Asia/Srednekolymsk (0)
    Asia/Taipei (0)
    Asia/Tashkent (0)
    Asia/Tbilisi (0)
    Asia/Tehran (0)
    Asia/Thimphu (0)
    Asia/Tokyo (0)
    Asia/Tomsk (0)
    Asia/Ulaanbaatar (0)
    Asia/Urumqi (0)
    Asia/Ust-Nera (0)
    Asia/Vientiane (0)
    Asia/Vladivostok (0)
    Asia/Yakutsk (0)
    Asia/Yangon (0)
    Asia/Yekaterinburg (0)
    Asia/Yerevan (0)
    Atlantic/Azores (0)
    Atlantic/Bermuda (0)
    Atlantic/Canary (0)
    Atlantic/Cape_Verde (0)
    Atlantic/Faroe (0)
    Atlantic/Madeira (0)
    Atlantic/Reykjavik (0)
    Atlantic/South_Georgia (0)
    Atlantic/St_Helena (0)
    Atlantic/Stanley (0)
    Australia/Adelaide (0)
    Australia/Brisbane (0)
    Australia/Broken_Hill (0)
    Australia/Currie (0)
    Australia/Darwin (0)
    Australia/Eucla (0)
    Australia/Hobart (0)
    Australia/Lindeman (0)
    Australia/Lord_Howe (0)
    Australia/Melbourne (0)
    Australia/Perth (0)
    Australia/Sydney (0)
    Europe/Amsterdam (0)
    Europe/Andorra (0)
    Europe/Astrakhan (0)
    Europe/Athens (0)
    Europe/Belgrade (0)
    Europe/Berlin (0)
    Europe/Bratislava (0)
    Europe/Brussels (0)
    Europe/Bucharest (0)
    Europe/Budapest (0)
    Europe/Busingen (0)
    Europe/Chisinau (0)
    Europe/Copenhagen (0)
    Europe/Dublin (0)
    Europe/Gibraltar (0)
    Europe/Guernsey (0)
    Europe/Helsinki (0)
    Europe/Isle_of_Man (0)
    Europe/Istanbul (0)
    Europe/Jersey (0)
    Europe/Kaliningrad (0)
    Europe/Kiev (0)
    Europe/Kirov (0)
    Europe/Lisbon (0)
    Europe/Ljubljana (0)
    Europe/London (0)
    Europe/Luxembourg (0)
    Europe/Madrid (0)
    Europe/Malta (0)
    Europe/Mariehamn (0)
    Europe/Minsk (0)
    Europe/Monaco (0)
    Europe/Moscow (0)
    Europe/Oslo (0)
    Europe/Paris (0)
    Europe/Podgorica (0)
    Europe/Prague (0)
    Europe/Riga (0)
    Europe/Rome (0)
    Europe/Samara (0)
    Europe/San_Marino (0)
    Europe/Sarajevo (0)
    Europe/Saratov (0)
    Europe/Simferopol (0)
    Europe/Skopje (0)
    Europe/Sofia (0)
    Europe/Stockholm (0)
    Europe/Tallinn (0)
    Europe/Tirane (0)
    Europe/Ulyanovsk (0)
    Europe/Uzhgorod (0)
    Europe/Vaduz (0)
    Europe/Vatican (0)
    Europe/Vienna (0)
    Europe/Vilnius (0)
    Europe/Volgograd (0)
    Europe/Warsaw (0)
    Europe/Zagreb (0)
    Europe/Zaporozhye (0)
    Europe/Zurich (0)
    Indian/Antananarivo (0)
    Indian/Chagos (0)
    Indian/Christmas (0)
    Indian/Cocos (0)
    Indian/Comoro (0)
    Indian/Kerguelen (0)
    Indian/Mahe (0)
    Indian/Maldives (0)
    Indian/Mauritius (0)
    Indian/Mayotte (0)
    Indian/Reunion (0)
    Pacific/Apia (0)
    Pacific/Auckland (0)
    Pacific/Bougainville (0)
    Pacific/Chatham (0)
    Pacific/Chuuk (0)
    Pacific/Easter (0)
    Pacific/Efate (0)
    Pacific/Enderbury (0)
    Pacific/Fakaofo (0)
    Pacific/Fiji (0)
    Pacific/Funafuti (0)
    Pacific/Galapagos (0)
    Pacific/Gambier (0)
    Pacific/Guadalcanal (0)
    Pacific/Guam (0)
    Pacific/Honolulu (0)
    Pacific/Kiritimati (0)
    Pacific/Kosrae (0)
    Pacific/Kwajalein (0)
    Pacific/Majuro (0)
    Pacific/Marquesas (0)
    Pacific/Midway (0)
    Pacific/Nauru (0)
    Pacific/Niue (0)
    Pacific/Norfolk (0)
    Pacific/Noumea (0)
    Pacific/Pago_Pago (0)
    Pacific/Palau (0)
    Pacific/Pitcairn (0)
    Pacific/Pohnpei (0)
    Pacific/Port_Moresby (0)
    Pacific/Rarotonga (0)
    Pacific/Saipan (0)
    Pacific/Tahiti (0)
    Pacific/Tarawa (0)
    Pacific/Tongatapu (0)
    Pacific/Wake (0)
    Pacific/Wallis (0)
    Other (0)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-04-09 20:09 UTC] pwiejak at iccsafe dot org
-Operating System: NAME="Amazon Linux AMI" / VERSIO +Operating System: Amazon Linux AMI 2018.03 -PHP Version: Next Minor Version +PHP Version: PHP 7.3.2 (cli) (built: Feb 15 2019 18:36:52) ( NTS )
 [2019-04-09 20:09 UTC] pwiejak at iccsafe dot org
changed server os
 [2020-02-28 16:14 UTC] cmb@php.net
-Status: Open +Status: Not a bug -Package: Unknown/Other Function +Package: Date/time related -Assigned To: +Assigned To: cmb
 [2020-02-28 16:14 UTC] cmb@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Works as expected: <https://3v4l.org/BAthE>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 00:01:30 2024 UTC