php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38258 Timezone database is not up to date
Submitted: 2006-07-30 05:55 UTC Modified: 2006-07-30 15:41 UTC
From: phpbugs at killmail dot net Assigned: derick (profile)
Status: Not a bug Package: Date/time related
PHP Version: 5.1.4 OS: linux glibc
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: phpbugs at killmail dot net
New email:
PHP Version: OS:

 

 [2006-07-30 05:55 UTC] phpbugs at killmail dot net
Description:
------------
The built-in timezone database in PHP 5.1.4 (and earlier versions) does not match the latest authoritiative database available from ftp://elsie.nci.nih.gov/pub/tzdata2006g.tar.gz

These timezones are affected:

Failed: Africa/Tunis got
Failed: America/Guatemala got
Failed: America/Managua got
Failed: America/Port-au-Prince got
Failed: America/Tegucigalpa got
Failed: Asia/Colombo got
Failed: Asia/Tehran got


Reproduce code:
---------------
PHP test case is available here:
http://jules.com.au/timezones.php.txt

To execute this test, you need to make sure your system has the latest zoneinfo databases installed.

Grab that data from ftp://elsie.nci.nih.gov/pub/tzdata2006g.tar.gz, and compile it with zic



Expected result:
----------------
No output expected if all tests pass.

Actual result:
--------------
Failed: Africa/Tunis got
Sun Jul 30 07:50:35 CEST 2006     PHP said
Sun, 30 Jul 2006 06:50:35 +0100
Failed: America/Guatemala got
Sun Jul 30 00:50:35 CDT 2006     PHP said
Sat, 29 Jul 2006 23:50:35 -0600
Failed: America/Managua got
Sun Jul 30 00:50:35 CDT 2006     PHP said
Sat, 29 Jul 2006 23:50:35 -0600
Failed: America/Port-au-Prince got
Sun Jul 30 01:50:35 EDT 2006     PHP said
Sun, 30 Jul 2006 00:50:35 -0500
Failed: America/Tegucigalpa got
Sun Jul 30 00:50:35 CDT 2006     PHP said
Sat, 29 Jul 2006 23:50:35 -0600
Failed: Asia/Colombo got
Sun Jul 30 11:20:35 IST 2006     PHP said
Sun, 30 Jul 2006 11:50:35 +0600
Failed: Asia/Tehran got
Sun Jul 30 09:20:36 IRST 2006     PHP said
Sun, 30 Jul 2006 10:20:36 +0430


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-07-30 15:41 UTC] derick@php.net
We can't fix older released versions of PHP with the new timezone database. The one in CVS is up to date. You need to install this PECL extension to get the latest data:
http://pecl.php.net/package/timezonedb

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 07:01:32 2024 UTC