php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49158 Time zone 'Pacific/Yap' is not in listed in DateTimeZone::listIdentifiers()
Submitted: 2009-08-04 18:38 UTC Modified: 2010-03-07 16:39 UTC
From: bugs at nazarenko dot net Assigned: derick (profile)
Status: Not a bug Package: Date/time related
PHP Version: 5.3.0 OS: Windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bugs at nazarenko dot net
New email:
PHP Version: OS:

 

 [2009-08-04 18:38 UTC] 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
)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-15 14:09 UTC] arowox at mail dot ru
??? ??? <a href=http://arowox.ru> </a>??? ????
 [2010-03-07 16:39 UTC] derick@php.net
-Status: Assigned +Status: Bogus
 [2010-03-07 16:39 UTC] derick@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

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"
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 11:01:31 2025 UTC