Skip to content

IntlDateFormatter output changes based on operating system used #16127

@GuySartorelli

Description

@GuySartorelli

Description

The following code:

<?php

$locale = 'en_NZ';

var_dump(
    IntlDateFormatter::create(
        $locale,
        IntlDateFormatter::MEDIUM,
        IntlDateFormatter::NONE
    )->format(1727655409)
);

Resulted in this output in Ubuntu 22.04 and Debian 12:

string(10) "30/09/2024"

And resulted in this output in Ubuntu 24.04:

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

See description

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions