-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Open
Description
Symfony version(s) affected: 4.2.x
Description
We encountered an issue with the BirthdayType and dates before the Gregorian calendar changes took place. I don't know the reason, but it maybe just an issue with php-intl. When using January, 1st 1582 as a birthday the view format (using German format in the screenshot) goes nuts:
PHP got it correctly but the view format gets off the 11 added days: https://en.wikipedia.org/wiki/Gregorian_calendar#Gregorian_reform
How to reproduce
Create a form with a BirthdayType
and set new \DateTime('1582-01-01)
as the data.
Possible Solution
No clue. As this seems to be handled by the IntlFormatter that is broken or unable to handle this? I' just confused.