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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 14:01:30 2024 UTC