mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00
- Added testcase for bug #33563 which is already fixed.
This commit is contained in:
parent
498c2c7f3b
commit
6ba4559b51
1 changed files with 12 additions and 0 deletions
12
ext/date/tests/bug33563.phpt
Normal file
12
ext/date/tests/bug33563.phpt
Normal file
|
@ -0,0 +1,12 @@
|
|||
--TEST--
|
||||
Bug #33563 (strtotime('+1 month',$abc) cant get right time)
|
||||
--FILE--
|
||||
<?php
|
||||
date_timezone_set("GMT");
|
||||
$strCurrDate = date('Y-m-d H:i:s',strtotime('2005-06-30 21:04:23'));
|
||||
$strMonAfter = date('Y-m-d H:i:s',strtotime('+1 month',strtotime($strCurrDate)));
|
||||
|
||||
echo "strCurrDate:$strCurrDate strMonAfter:$strMonAfter";
|
||||
?>
|
||||
--EXPECT--
|
||||
strCurrDate:2005-06-30 21:04:23 strMonAfter:2005-07-30 21:04:23
|
Loading…
Add table
Add a link
Reference in a new issue