Zend Date 返回错误值

Zend Date returning wrong value

Zend 日期是从年底的日期减去一年。知道我做错了什么吗?

$fromDate = '2022-01-01 05:00:00';

echo $fromDate . "\n";
> 2022-01-01 05:00:00
$fromDateObj = new Zend_Date($fromDate,Zend_Date::ISO_8601);
$fromDateObj->setTimezone('Europe/London');
$from = $fromDateObj->toString('Y-MM-dd HH:mm:ss');
echo $from . "\n";
> 2021-01-01 05:00:00

谢谢

“Y”是 iso 年份。应该使用“y-MM..”。