Bug #81504 [Asn->Csd]: Incorrect timezone transition details for Europe/Amsterdam
Edit report at https://bugs.php.net/bug.php?id=81504&edit=1
ID: 81504
Updated by: git@php.net
Reported by: salathe@php.net
Summary: Incorrect timezone transition details for
Europe/Amsterdam
-Status: Assigned
+Status: Closed
Type: Bug
Package: Date/time related
PHP Version: 8.1.0RC3
Assigned To: derick
Block user comment: N
Private report: N
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2021-10-05 10:06:47] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=81504&edit=1
Thread (2 messages)