[php-src] Issue #10447: Dates Created from Strings with Timezone Offsets Aren't Properly Formatted When Using 'p'

From: Date: Wed, 25 Jan 2023 18:22:07 +0000
Subject: [php-src] Issue #10447: Dates Created from Strings with Timezone Offsets Aren't Properly Formatted When Using 'p'
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-243569@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/10447 Author: dustinwilson ### Description The following code: ```php <?php $date = new \DateTimeImmutable('2023-01-25T00:00:00+00:00'); echo $date->format('Y-m-d\TH:i:sp'); ``` Resulted in this output: ``` 2023-01-25T00:00:00+00:00 ``` But I expected this output instead: ``` 2023-01-25T00:00:00Z ``` ### PHP Version 8.2.1 ### Operating System MacOS Monterey (12.6.3)

« previous php.bugs (#243569) next »