Bug #81504 [NEW]: Incorrect timezone transition details for Europe/Amsterdam

From: Date: Tue, 05 Oct 2021 10:06:47 +0000
Subject: Bug #81504 [NEW]: Incorrect timezone transition details for Europe/Amsterdam
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237037@lists.php.net to get a copy of this message
From: salathe@php.net Operating system: PHP version: 8.1.0RC3 Package: Date/time related Bug Type: Bug Bug description:Incorrect timezone transition details for Europe/Amsterdam 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 bug report at https://bugs.php.net/bug.php?id=81504&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=81504&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=81504&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=81504&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=81504&r=needscript Try newer version: https://bugs.php.net/fix.php?id=81504&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=81504&r=support Expected behavior: https://bugs.php.net/fix.php?id=81504&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=81504&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=81504&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=81504&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=81504&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=81504&r=dst IIS Stability: https://bugs.php.net/fix.php?id=81504&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=81504&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=81504&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=81504&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=81504&r=mysqlcfg

« previous php.bugs (#237037) next »