【发布时间】:2017-05-22 20:03:47
【问题描述】:
while($chat = $result->fetch_object()){
// Returning the GMT (UTC) time of the chat creation:
$chat->time = array(
'hours' => date('H',strtotime($chat->ts)),
'minutes' => date('i',strtotime($chat->ts))
);
我正在使用此代码在聊天消息旁边显示时间。如何更改此代码以在 IST 时区显示输出时间?谢谢
【问题讨论】:
标签: php