php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64557 Missing dateTimezone transitions
Submitted: 2013-03-31 16:25 UTC Modified: 2013-04-01 14:08 UTC
From: dcolter at me dot com Assigned:
Status: Closed Package: Date/time related
PHP Version: 5.3.15 OS: OSX 10.8.3
Private report: No CVE-ID: None
 [2013-03-31 16:25 UTC] dcolter at me dot com
Description:
------------
---
From manual page: http://www.php.net/datetimezone.gettransitions#refsect1-
datetimezone.gettransitions-description
---

PHP version: 5.3.15

This being the first time posting a 'bug report', I'm note sure this is placed and 
located correctly. Please feel free to point or move this post.

I have found one timezone of interest that only produces a transition array with 
latest 'time' of '2002-02-17T02:00:00+0000'. I suspect now that more may follow.

Is this intended or an oversight? Has it been fixed in a later version?

Can anything be done about the omission? 

Test script:
---------------
echo "<pre>";
$timezone = new DateTimeZone ( 'America/Recife' );
$transitions = $timezone -> getTransitions ();
print_r($transitions);
echo "</pre>";

Expected result:
----------------
I expected to see ~ 240 arrays in the transition array with dates out to year 
2036.

Actual result:
--------------
The transition array for America/Recife has a count of 40 and has last date in 
year 2002.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-03-31 17:31 UTC] pajoye@php.net
-Package: date_time +Package: Date/time related
 [2013-03-31 17:42 UTC] dcolter at me dot com
-Package: Date/time related +Package: date_time -PHP Version: 5.3.23 +PHP Version: 5.3.15
 [2013-03-31 17:42 UTC] dcolter at me dot com
It appears this also causes the result of a check of the DST flag to be 0 in:

date_default_timezone_set ( 'America/Recife' );
date ( 'I' );

Additionally, I have found an absence of current transitions for:
1. America/Recife
2. America/Manaus
3. America/La_Paz
4. America/Lima
5. America/Bogota
6. America/Guayaquil
7. America/Panama
8. America/Costa_Rica
9. America/Managua
10. America/El_Salvador
11. America/Tegucigalpa
12. America/Guatemala
13. America/Belize
14. America/Cayman
15. America/Jamaica
16. America/Santo_Domingo
17. America/Port-au-Prince
18. America/Aruba
19. America/Curacao
20. America/Caracas
21. America/Tortola

Is there a way to become involved in updating these?
 [2013-03-31 20:12 UTC] pajoye@php.net
-Package: date_time +Package: Date/time related
 [2013-03-31 20:12 UTC] pajoye@php.net
Please do not change the category again.
 [2013-04-01 14:08 UTC] dcolter at me dot com
-Status: Open +Status: Closed
 [2013-04-01 14:08 UTC] dcolter at me dot com
I hope it is okay to 'close' this report.

Found further info that the absence of dates it likely due to the region not 
following daylight savings time.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 23:01:26 2024 UTC