Open valugi opened 8 years ago
I am no sure this is a bug or what is the correct behavior, but I was expecting 28th of February more than 1st of March.
$date = new Zend_Date('2016-02-29', 'yyyy-MM-dd'); $date->sub(1, Zend_Date::YEAR); // Mar 1, 2015 12:00:00 AM
This is a bug, but the Zend_Date is error-prone and a fat code monster. I see no chance to fix the problem.
Zend_Date
@froschdesign I love the optimism :)
I am no sure this is a bug or what is the correct behavior, but I was expecting 28th of February more than 1st of March.