|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-05-31 16:03 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2018-05-31 16:03 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 10:00:02 2025 UTC |
Description: ------------ on 05-31 run strtotime('-1 month') and strtotime('-2 month') the month is not sequential Test script: --------------- echo date('Y-m-d H:i:s', strtotime('-1 month')) . "\n"; echo date('Y-m-d H:i:s', strtotime('-2 month')) . "\n"; Expected result: ---------------- the month should be sequential Actual result: -------------- -1 month for 05 and -2 month for 03