[php-src] Issue #12397: Bug datefmt_format transform 01/01/2017 to 1 janvier 2016

From: Date: Tue, 10 Oct 2023 09:40:12 +0000
Subject: [php-src] Issue #12397: Bug datefmt_format transform 01/01/2017 to 1 janvier 2016
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-245533@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/12397 Author: Pilou4 ### Description The following code: ```php <?php ```$formatter = new IntlDateFormatter('fr_FR', IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'Europe/Paris', IntlDateFormatter::GREGORIAN, "d MMMM Y"); $testedAt = new DateTime('01-01-2017'); $dateFormat = ucfirst($formatter->format($testedAt)); Resulted in this output: ```1 janvier 2016 ``` But I expected this output instead: ```1 janvier 2017 ``` Same with 01-01-2016 tranform into 01-01-2015 .Works fine with all other dates ### PHP Version PHP 8.2.11 ### Operating System Ubuntu 22.04.3

« previous php.bugs (#245533) next »