php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #55113 Error in Named Time Zones
Submitted: 2011-07-02 11:07 UTC Modified: 2011-07-02 11:28 UTC
From: Ray dot Paseur at Gmail dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.3.6 OS: Linux
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: Ray dot Paseur at Gmail dot com
New email:
PHP Version: OS:

 

 [2011-07-02 11:07 UTC] Ray dot Paseur at Gmail dot com
Description:
------------
---
From manual page: http://www.php.net/timezones
---
http://www.laprbass.com/RAY_temp_timezones_test.php
Outputs:
TESTING NAMED TIME ZONES
America/Kralendijk IS BOGUS
America/Lower_Princes IS BOGUS

Test script:
---------------
<?php // RAY_temp_timezones_test.php
error_reporting(E_ALL);
echo "<pre>";
$timezones = array ( 'America/Kralendijk' , 'America/Louisville' , 'America/Lower_Princes' );

$bogus = FALSE;
echo PHP_EOL . "TESTING NAMED TIME ZONES";
foreach ($timezones as $t)
{
    if (FALSE === @date_default_timezone_set($t))
    {
        $bogus = TRUE;
        echo PHP_EOL . "$t IS BOGUS";
    }
}

// SHOW MESSAGE IF ALL PASS
if (!$bogus) echo PHP_EOL . "ALL NAMED TIME ZONES WORK WITH date_default_timezone_set()";


Expected result:
----------------
ALL NAMED TIME ZONES WORK WITH...

Actual result:
--------------
TESTING NAMED TIME ZONES
America/Kralendijk IS BOGUS
America/Lower_Princes IS BOGUS

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-07-02 11:28 UTC] derick@php.net
-Status: Open +Status: Bogus
 [2011-07-02 11:28 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

They are very new names, you need to either use a PHP version from SVN, or install the timezonedb PECL extension for them to work.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 09 23:01:33 2025 UTC