我正在将存储在自定义用户元数据中的数字添加到当前日期。这是我的密码
$addeddays = get_user_meta($this->order->user_id, \'xxx\', true);
$timeBase = date(\'j.n.Y\');
echo date(\'j.n.Y\', strtotime($timeBase, "+ $addeddays days"));
但产量为1.1.1970代码中有什么错误,或者如何用其他方法来实现?我读过这个问题,但在答案中也是我的方法,所以我不知道为什么它不起作用。