]> granicus.if.org Git - php/commitdiff
Added -- test case
authorIlia Alshanetsky <iliaa@php.net>
Thu, 22 Mar 2007 23:34:14 +0000 (23:34 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 22 Mar 2007 23:34:14 +0000 (23:34 +0000)
ext/date/tests/bug40861.phpt

index 8331bd32d0f3bec7d7135afe74c3ef91b29b7091..de18b0e34e6e723c4c46c1e0aadf179422d0599b 100644 (file)
@@ -14,6 +14,12 @@ $ts = strtotime('2000-01-01 12:00:00');
 $result = date("Y-m-d H:i:s", strtotime("+$offset minutes", $ts));
 echo $result . "\n";
 
+$offset = -60;
+$ts = strtotime('2000-01-01 12:00:00');
+$result = date("Y-m-d H:i:s", strtotime("-$offset minutes", $ts));
+echo $result . "\n";
+
+
 $offset = 60;
 $ts = strtotime('2000-01-01 12:00:00');
 $result = date("Y-m-d H:i:s", strtotime("+$offset minutes", $ts));
@@ -23,4 +29,5 @@ echo $result . "\n";
 --EXPECT--
 2000-01-01 13:00:00
 2000-01-01 11:00:00
+2000-01-01 11:00:00
 2000-01-01 13:00:00