Need a little help. I'm using PHP. Here is a example date: Mon Sep 05 2016 15:30:00 GMT+0800 (China Standard Time)
What i want is display a outpout like this: 2016-09-05 15:30:00
I've tried to convert it using this function: date('Y-m-d h:i:s', strtotime($time));
But the output is: 1970-01-01 08:00:00
Need some advice Thanks.