|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-06-14 10:53 UTC] cmb@php.net
-Status: Open
+Status: Verified
[2016-06-14 10:53 UTC] cmb@php.net
[2021-04-05 15:18 UTC] derick@php.net
-Status: Verified
+Status: Closed
-Assigned To:
+Assigned To: derick
[2021-04-05 15:18 UTC] derick@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 18:00:01 2025 UTC |
Description: ------------ The test script below prints '2370-01-00' as the result, which is obviously wrong. Test script: --------------- <?php $date = new \DateTime('2370-01-31'); echo $date->sub(new \DateInterval('P1M'))->format('Y-m-d'); ?> Expected result: ---------------- 2369-12-31 Actual result: -------------- 2370-01-00