【发布时间】:2013-12-11 16:39:16
【问题描述】:
使用此代码,
setlocale(LC_ALL, 'fr_FR');
$end_date_formatted = utf8_encode(strftime("%d %B %G", mktime(0, 0, 0, $month_end, $day_end, $year_end)));
strftime 仅返回 12 月 31 日的正确年份。 它应该显示 2013 年 12 月 31 日,但显示的是 2014 年 12 月 31 日
【问题讨论】:
-
$day_end, $month_end, $year_end传递了哪些值?
标签: php timestamp locale strftime