[php-src] Issue #11281: DateTimeZone::getName() does not include seconds in offset

From: Date: Fri, 19 May 2023 22:45:20 +0000
Subject: [php-src] Issue #11281: DateTimeZone::getName() does not include seconds in offset
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-244489@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/11281 Author: BenMorel ### Description The following code: ```php <?php $tz = new DateTimeZone('+03:00:01'); echo $tz->getName(); ``` Resulted in this output: ``` +03:00 ``` But I expected this output instead: ``` +03:00:01 ``` --- Context: since PHP 8.1.7 (https://github.com/php/php-src/pull/8589), time-zone offsets with seconds are properly supported: https://3v4l.org/m5VkU But it looks like getName() has not been updated to support seconds. ### PHP Version 8.2.6 ### Operating System _No response_

« previous php.bugs (#244489) next »