php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81504 Incorrect timezone transition details for Europe/Amsterdam
Submitted: 2021-10-05 10:06 UTC Modified: 2021-10-05 10:07 UTC
From: salathe@php.net Assigned: derick (profile)
Status: Closed Package: Date/time related
PHP Version: 8.1.0RC3 OS:
Private report: No CVE-ID: None
 [2021-10-05 10:06 UTC] salathe@php.net
Description:
------------
In PHP 8.1, the offsets and abbreviations for timezone transitions as of 1996-10-27 for Europe/Amsterdam are incorrect.

Test script:
---------------
<?php
$tz = new DateTimeZone('Europe/Amsterdam');
foreach ($tz->getTransitions(strtotime("1996-01-01"), strtotime("1997-12-31")) as $tr) {
    echo "{$tr['time']} {$tr['offset']} {$tr['abbr']}\n";
}
?>

Expected result:
----------------
1995-12-31T23:00:00+0000 3600 CET
1996-03-31T01:00:00+0000 7200 CEST
1996-10-27T01:00:00+0000 3600 CET
1997-03-30T01:00:00+0000 7200 CEST
1997-10-26T01:00:00+0000 3600 CET

Actual result:
--------------
1995-12-31T23:00:00+0000 3600 CET
1996-03-31T01:00:00+0000 7200 CEST
1996-10-27T01:00:00+0000 4772 NST
1997-03-30T01:00:00+0000 1172 AMT
1997-10-26T01:00:00+0000 4772 NST

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-10-05 10:07 UTC] salathe@php.net
-Assigned To: +Assigned To: derick
 [2021-10-05 14:23 UTC] git@php.net
Automatic comment on behalf of derickr
Revision: https://github.com/php/php-src/commit/68b874d10d9ff2fc0c3915147c286009e2cfbe34
Log: Fixed bug #81504: Incorrect timezone transition details for POSIX data
 [2021-10-05 14:23 UTC] git@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC