ID: 46111 Updated by: j...@php.net Reported By: jason at eventshop dot com dot au -Status: Open +Status: Verified Bug Type: Date/time related Operating System: * -PHP Version: 5CVS, 6CVS (2008-11-21) +PHP Version: 5.*, 6CVS (2009-05-10) New Comment:
The list is a bit shorter with PHP_5_3 than with PHP_5_2..some progress? :) Previous Comments: ------------------------------------------------------------------------ [2008-09-18 06:01:34] jason at eventshop dot com dot au Description: ------------ When converting a date/time/timezone string using strtotime(), it returns false for several of the supposedly valid timezones, such as "Adelaide/ACT", "Israel", "US/Arizona", etc. All other timezones work correctly. Reproduce code: --------------- $timezones = timezone_identifiers_list(); foreach ($timezones as $zone) { $date_string = "2008-01-01 13:00:00 " . $zone; if (!strtotime($date_string)) { echo "<br />" . $zone; } } Expected result: ---------------- No result should be displayed. Actual result: -------------- Africa/Dar_es_Salaam Africa/Porto-Novo America/Argentina/ComodRivadavia America/Blanc-Sablon ... etc ... US/Pacific US/Pacific-New US/Samoa W-SU Zulu ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46111&edit=1