i try to to use localized dates after 2038 with php
strftime use Timestamp so it doesnt work after 2038
DateTime is not localized...
So I try to use IntlDateFormatter with DateTime :
$d = DateTime::createFromFormat('Y-m-d', '2040-01-01');
$fmt = new IntlDateFormatter(
'fr_FR',
IntlDateFormatter::FULL,
IntlDateFormatter::FULL,
'America/Los_Angeles',
IntlDateFormatter::GREGORIAN
);
echo $fmt->format($d);
echo $fmt->getErrorMessage();
here what I get : datefmt_format: cannot get timestamp: U_ILLEGAL_ARGUMENT_ERROR
Actually i guess IntlDateFormatter internally convert date into timestamp...
So how i can localized date beyond 2038 in php ?