📅  最后修改于: 2022-03-11 14:53:59.225000             🧑  作者: Mango
代码示例4
$date = new \DateTime();
$date->setTimezone(new \DateTimeZone('+0800')); //GMT
echo $date->format('Y-m-d H:i:s');
// 2020-11-20 15:23:49