0
今天是27斋月1438在亚洲/德黑兰。但PHP Intl
今天说是28斋月1438。 任何人都知道问题是什么?PHP国际中不正确的Hijri日期
$DateTime = new DateTime();
$IntlDateFormatter = new IntlDateFormatter(
'[email protected]=islamic',
IntlDateFormatter::FULL,
IntlDateFormatter::FULL,
'Asia/Tehran',
IntlDateFormatter::TRADITIONAL);
echo $IntlDateFormatter->format($DateTime);
我写此功能的helper方法,可以访问:此链接](https://stackoverflow.com/questions/43332341/php-intl-can-convert-a-gregorian-date-to-other-calendar-type/46275845#46275845)你可以传递日历类型给他们 – honarkhah