[php-src] Issue #12981: DateTimeImmutable creation with "Uv" format fails

From: Date: Wed, 20 Dec 2023 07:33:46 +0000
Subject: [php-src] Issue #12981: DateTimeImmutable creation with "Uv" format fails
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-246078@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/12981 Author: norkunas ### Description The following code: ```php <?php var_dump(DateTimeImmutable::createFromFormat('Uv', 1703056192042)); ``` Resulted in this output: ``` bool(false) ``` But I expected this output instead: ``` object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2023-12-20 07:09:52.042000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+00:00" } ``` https://3v4l.org/fDUAH ### PHP Version PHP 8.3.0 ### Operating System Ubuntu 22.04.1

« previous php.bugs (#246078) next »