Doc #55113 [Opn->Bgs]: Error in Named Time Zones
| From: | derick@php.net | Date: | Sat, 02 Jul 2011 15:28:59 +0000 |
| Subject: | Doc #55113 [Opn->Bgs]: Error in Named Time Zones | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-6814@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55113&edit=1
ID: 55113
Updated by: derick@php.net
Reported by: Ray dot Paseur at Gmail dot com
Summary: Error in Named Time Zones
-Status: Open
+Status: Bogus
Type: Documentation Problem
Package: Date/time related
Operating System: Linux
PHP Version: 5.3.6
Block user comment: N
Private report: N
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
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.
Previous Comments:
------------------------------------------------------------------------
[2011-07-02 11:07:37] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55113&edit=1