[php-src] Issue #10956: `MessageFormatter` uses default timezone to format dates

From: Date: Mon, 27 Mar 2023 14:54:18 +0000
Subject: [php-src] Issue #10956: `MessageFormatter` uses default timezone to format dates
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-244021@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/10956 Author: MatTheCat ### Description The following code: ```php <?php date_default_timezone_set('UTC'); echo MessageFormatter::formatMessage( 'fr_FR', '{datetime, time, short}', ['datetime' => new DateTimeImmutable('2023-03-27T12:00', new DateTimeZone('Europe/Paris'))] ); ``` Resulted in this output: ``` 10:00 ``` But I expected this output instead: ``` 12:00 ``` ### PHP Version all ### Operating System _No response_

« previous php.bugs (#244021) next »