Bug #49158 [Asn->Bgs]: Time zone 'Pacific/Yap' is not in listed in DateTimeZone::listIdentifiers()
Edit report at http://bugs.php.net/bug.php?id=49158&edit=1
ID: 49158
Updated by: derick@php.net
Reported by: bugs at nazarenko dot net
Summary: Time zone 'Pacific/Yap' is not in listed in
DateTimeZone::listIdentifiers()
-Status: Assigned
+Status: Bogus
Type: Bug
Package: Date/time related
Operating System: Windows
PHP Version: 5.3.0
Assigned To: derick
New Comment:
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
This is not a bug. Pacific/Yap is a deprecated timezone name, and an
alias for Pacific/Truk. It is still listed if you include all BC zone
names:
php -r 'var_dump(DateTimeZone::listIdentifiers(
DateTimeZone::ALL_WITH_BC ) );' | grep Yap
string(11) "Pacific/Yap"
Previous Comments:
------------------------------------------------------------------------
[2009-11-15 14:09:43] arowox at mail dot ru
Âîò îíî <a href=http://arowox.ru> </a>êàê
äàæå
------------------------------------------------------------------------
[2009-08-04 18:38:28] bugs at nazarenko dot net
Description:
------------
When getting a list of supported time zones via
DateTimeZone::listIdentifiers(), the 'Pacific/Yap' time zone is missing.
This time zone should be the last in the list.
Reproduce code:
---------------
<?php
$tzs = DateTimeZone::listIdentifiers();
print_r($tzs);
?>
Expected result:
----------------
Skipped long output....
...
[396] => Pacific/Tarawa
[397] => Pacific/Tongatapu
[398] => Pacific/Truk
[399] => Pacific/Wake
[400] => Pacific/Wallis
[401] => Pacific/Yap
[402] => UTC
)
Actual result:
--------------
Skipped long output....
...
[396] => Pacific/Tarawa
[397] => Pacific/Tongatapu
[398] => Pacific/Truk
[399] => Pacific/Wake
[400] => Pacific/Wallis
[401] => UTC
)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=49158&edit=1
Thread (4 messages)