|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-03-31 16:26 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2014-03-31 16:26 UTC] requinix@php.net
[2014-03-31 20:13 UTC] jglw at live dot co dot uk
-Type: Bug
+Type: Feature/Change Request
[2014-03-31 20:13 UTC] jglw at live dot co dot uk
[2014-03-31 20:25 UTC] derick@php.net
[2014-03-31 20:25 UTC] derick@php.net
-Status: Not a bug
+Status: Wont fix
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 02:00:01 2025 UTC |
Description: ------------ If you modify a time -1 month from the last day of a month it seems to interpret that as take away the number of days from the previous month. It would make more sense that if you modified a time by -1 month it wouldn't fall into the same month from which you modified it. Test script: --------------- <?php $time = strtotime("2014-03-31 -1 month"); echo date("Y-m-d", $time); ?> Expected result: ---------------- 2014-02-28 Actual result: -------------- 2014-03-03