From: jason at eventshop dot com dot au
Operating system: Windows XP
PHP version: 5.2.6
PHP Bug Type: Date/time related
Bug description: strtotime() returns false for some valid timezones
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 bug report at http://bugs.php.net/?id=46111&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=46111&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=46111&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=46111&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=46111&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=46111&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=46111&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=46111&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=46111&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=46111&r=support
Expected behavior: http://bugs.php.net/fix.php?id=46111&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=46111&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=46111&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=46111&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46111&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46111&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=46111&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=46111&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=46111&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=46111&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=46111&r=mysqlcfg