[php-src] Issue #9365: PHP 8.1.9 intl IntlDateFormatter fails to format dates

From: Date: Thu, 18 Aug 2022 11:33:15 +0000
Subject: [php-src] Issue #9365: PHP 8.1.9 intl IntlDateFormatter fails to format dates
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-242242@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/9365 Author: ItsReddi ### Description The following code: ```php $date = new IntlDateFormatter(locale: 'en_US', dateType: IntlDateFormatter::SHORT, timeType: IntlDateFormatter::NONE); $date->setPattern('EEEEEE'); echo $date->format(1660821794); $date = new IntlDateFormatter(locale: 'de_DE', dateType: IntlDateFormatter::SHORT, timeType: IntlDateFormatter::NONE); $date->setPattern('EEEEEE'); echo $date->format(1660821794); <?php ``` Resulted in this output: (Today was Thursday) ``` Th Th ``` But I expected this output instead: (Output from PHP 8.0) ``` Th Do. ``` ### PHP Version PHP 8.1.9 ### Operating System php:8.1.9-fpm-alpine

« previous php.bugs (#242242) next »