I have a Date/Time string from facebook graph that i need to convert to a readable date time.
2010-09-17T04:07:36+0000
How can I format it to GMT+8 using php to look like this below.
17 September at 12:07
echo date('j F \a\t H:i', strtotime('2010-09-17T04:07:36+0000'));
设置您的时区以date_default_timezone_set
进行正确转换。
您还可以使用获取 Date 对象
$date_object = date_create ('2010-09-17T04:07:36+0000');