Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
echo date('Y-m-d',time())
私は2012-07-16を取得しますが、smarty出力が
{$smarty.now | date_format : "%Y-%I-%d"}
私は2012-04-16を取得します
time_zoneが正しく設定されていることを確認しました。
時間だから%I...試してみてください:
%I
{$smarty.now | date_format : "%Y-%m-%d"}
%m-10進数としての月(範囲01から12)
ドキュメントはここにありますdate_format
date_format