Edit report at https://bugs.php.net/bug.php?id=60654&edit=1
ID: 60654 Comment by: austin dot w dot best at gmail dot com Reported by: keloran at develbox dot info Summary: Strtotime taking leap year into effect before the leap Status: Open Type: Bug Package: Date/time related Operating System: Gentoo PHP Version: 5.4SVN-2012-01-04 (SVN) Block user comment: N Private report: N New Comment: To add to this... date('n', strtotime('+ 1 month', time())); That should be 2 and it is returning a 3. Now it is 3:30 PM EST when i noticed this, so by using a preset timestamp you can reproduce this. date('n', strtotime('+ 1 month', '1327954976')); Will return 3 instead of 2 as well. I am guessing this will never be fixed, and if not, maybe say "hey, we cant fix this one" -OR "this is more work to fix than it is worth" instead of ignoring the problem? https://bugs.php.net/bug.php?id=27793 that is from 2004!!! Not to mention there is a note at the bottom of it that it was posted at least 5 other times. Previous Comments: ------------------------------------------------------------------------ [2012-01-04 13:51:41] keloran at develbox dot info Description: ------------ If you do the test, you should get if today is 02/01/2012 the result should be 03/01/2011 but instead you get 02/01/2011 Test script: --------------- echo date("d/m/Y", strtotime("yesterday last year")); Expected result: ---------------- 03/01/2011 Actual result: -------------- 02/01/2011 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60654&edit=1