mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
10 lines
207 B
PHP
10 lines
207 B
PHP
--TEST--
|
|
Bug #64653 (Subtraction of DateInterval yields wrong result)
|
|
--FILE--
|
|
<?php
|
|
$date = new \DateTime('2370-01-31');
|
|
echo $date->sub(new \DateInterval('P1M'))->format('Y-m-d');
|
|
?>
|
|
--EXPECT--
|
|
2369-12-31
|