1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/date/tests/bug64653.phpt
2021-04-06 20:50:32 +01:00

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