Skip to content

IntlDateFormatter bug years #17757

@rapisarda

Description

@rapisarda

Description

The following code:

echo (new IntlDateFormatter(
            'fr_FR',
            IntlDateFormatter::FULL,
            IntlDateFormatter::FULL,
            'Europe/Paris',
            IntlDateFormatter::GREGORIAN,
            'MMM YYYY'
        ))->format(new DateTime('2024-12-30'));
<?php

Resulted in this output:

déc. 2025

But I expected this output instead:

déc. 2024

PHP Version

8.1.31

Operating System

No response

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