|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-10-05 10:07 UTC] salathe@php.net
-Assigned To:
+Assigned To: derick
[2021-10-05 14:23 UTC] git@php.net
[2021-10-05 14:23 UTC] git@php.net
-Status: Assigned
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 10:00:01 2025 UTC |
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