strftime不显示当前日期


strftime not displaying current date

如果我使用

$end_date_formatted = date("F d, Y", mktime(0, 0, 0, $month_end, $day_end, $year_end));

它根据$month_end、$day_end和$year_end的值返回正确的日期。

但是如果我使用

setlocale(LC_ALL, 'fr_FR');
$end_date_formatted = utf8_encode(strftime("%d %B %G", mktime(0, 0, 0, $day_end, $month_end, $year_end)))

返回的日期完全不同。它显示2015年12月12日,应显示2013年12月26日

mktime(0, 0, 0, $month_end, $day_end, $year_end)))

mktime(0, 0, 0, $day_end, $month_end, $year_end)))

在一个月里,你得到了第12个月,在一个月中,你得到的是第12天。另一个月是第26个月(所以它增加了一些年份),另一个是第26天。

这就是问题所在。