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.
我正在尝试使用 Yii 框架制作 php,显示date()在 pt_br 中。
date()
setlocale(LC_TIME,"pt_BR")
我做错了什么?
尝试在 index.php 中添加以下行,以便它在任何其他 php 代码之前首先执行。
date_default_timezone_set('Asia/Calcutta');