[php-src] Issue #10289: DateTime::setTimezone produce different results with 7.4 and 8.0

From: Date: Wed, 11 Jan 2023 13:28:07 +0000
Subject: [php-src] Issue #10289: DateTime::setTimezone produce different results with 7.4 and 8.0
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-243411@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/10289 Author: gimler ### Description The following code produce different results PHP 8.0.27 ``` docker run --rm -it php:8.0.27-cli php -r "var_dump((new DateTime())->setTimezone(new \DateTimeZone('BST')));" object(DateTime)#1 (3) { ["date"]=> string(26) "2023-01-11 14:11:28.643248" ["timezone_type"]=> int(2) ["timezone"]=> string(3) "BST" } ``` PHP 7.4. ``` docker run --rm -it php:7.4.33-cli php -r "var_dump((new DateTime())->setTimezone(new \DateTimeZone('BST')));" object(DateTime)#1 (3) { ["date"]=> string(26) "2023-01-11 13:11:28.643248" ["timezone_type"]=> int(2) ["timezone"]=> string(3) "BST" } ``` ### PHP Version 8.0.27 ### Operating System _No response_

« previous php.bugs (#243411) next »