Description of problem: Please note that PHP reports "not a bug." I disagree. This applies to both FC4 and FC5. Version-Release number of selected component (if applicable): php-5.1.2-5 and php-5.0.4-10.5 How reproducible: If current date = March 30 or March 31: $lastmonth=date('Y-m',strtotime("-1 month 1 day")); Actual results: 2006-03 Expected results: 2006-02
Thanks for the report. The PHP strtotime interface aims to be compatible with the GNU "Date Input Format" syntax, per the PHP strtotime manual page. Under that syntax, the behaviour implemented here is as expected; it even gives a similar case an example. http://www.gnu.org/software/tar/manual/html_node/tar_115.html#SEC115 I cannot see any reason to disagree with the upstream response on this.