|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63429 Incomplete Timezone Transitions
Submitted: 2012-11-03 16:16 UTC Modified: 2015-07-18 16:38 UTC
Avg. Score:2.7 ± 0.5
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: alix dot axel+php at gmail dot com Assigned: cmb (profile)
Status: Closed Package: timezonedb (PECL)
PHP Version: 5.4.8 OS: Ubuntu 12.04.1 LTS
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.
Block user comment
Status: Assign to:
Bug Type:
From: alix dot axel+php at gmail dot com
New email:
PHP Version: OS:


 [2012-11-03 16:16 UTC] alix dot axel+php at gmail dot com
I'm running "Olson" Timezone Database Version 2012.8.

Certain timezone transitions seem to be outdated or buggy (wrong abbreviations 
and wrong offsets/dst combinations),

For America/Argentina/San_Luis see and

I just wanted to get the standard offset 
( for each timezone 
in order to automatically populate a drop drown select box.

For more details / tests see:

Test script:

function getStandardOffsetFromUTC($timezone)
    $timezone = new DateTimeZone($timezone);
    $transitions = array_slice($timezone->getTransitions(), -3);

    foreach (array_reverse($transitions) as $transition)
        if ($transition['isdst'] == 1) // we are interested in standard offsets only

        return sprintf('UTC %+03d:%02u', $transition['offset'] / 3600, abs($transition['offset']) % 3600 / 60);

    return false;

echo getStandardOffsetFromUTC('America/Argentina/San_Luis') . "\n";
echo getStandardOffsetFromUTC('Antarctica/Casey') . "\n";
echo getStandardOffsetFromUTC('Antarctica/Davis') . "\n";

Expected result:
UTC -03:00
UTC +11:00
UTC +05:00

Actual result:
UTC -04:00
UTC +08:00
UTC +07:00


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-11-03 16:18 UTC] alix dot axel+php at gmail dot com
Forgot to say that for San_Luis the latest timezone abbreviation should be ART 
and not WAR[S]T.
 [2015-07-18 16:38 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2015-07-18 16:38 UTC]
The offset has been wrong for America/Argentina/San_Luis, what
has been fixed as of PHP 5.4.21/timezonedb 2013.6[1].

The offsets of Antarctica/Casey and Antarctica/Davis might be wrong,
but that would have to be fixed upstream in IANAs time zone db[2].

[1] <>
[2] <>
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 28 21:01:31 2024 UTC