我是唯一一个让这个错误时间回来的人吗?
$date_str = "2016-Mar-28 06:04:31 PM";
$timestamp = strtotime($date_str);
echo date('Y-m-d H:m:s', $timestamp);'
//Returns: 2016-03-28 18:03:31注18:03:31而不是18:04:31,我的时区是正确的,我打赌它将在小时而不是1分钟前关闭,运行PHP5.6.16
发布于 2016-03-29 01:50:09
$date_str = "2016-Mar-28 06:04:31 PM";
$timestamp = strtotime($date_str);
echo date('Y-m-d H:i:s', $timestamp);答案:
2016-03-28 18:04:31问题:错误的一分钟
m = month参1 参2
https://stackoverflow.com/questions/36273942
复制相似问题