📅  最后修改于: 2022-03-11 15:03:20.527000             🧑  作者: Mango
You need to use the same time-zone for a same comparison:
echo strtotime("2011-01-26 13:51:50 GMT");
// 1296049910
var d = Date.parse("2011-01-26 13:51:50 GMT") / 1000;
console.log(d);
// 1296049910