[php-src] Issue #16127: `IntlDateFormatter` output changes based on operating system used
| From: | GuySartorelli | Date: | Mon, 30 Sep 2024 00:37:30 +0000 |
| Subject: | [php-src] Issue #16127: `IntlDateFormatter` output changes based on operating system used | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-247938@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/16127
Author: GuySartorelli
### Description
The following code:
```php
<?php
$format = 'en_NZ';
var_dump(
IntlDateFormatter::create(
$format,
IntlDateFormatter::MEDIUM,
IntlDateFormatter::NONE
)->format(1727655409)
);
```
Resulted in this output in Ubuntu 22.04 and Debian 12:
```text
string(10) "30/09/2024"
```
And resulted in this output in Ubuntu 24.04:
```text
string(12) "30 Sept 2024"
```
I'm not sure which of those is correct, but I expected the two results to be the same.
### PHP Version
PHP 8.3
### Operating System
_No response_