mirror of
https://github.com/php/php-src.git
synced 2024-12-03 06:44:07 +08:00
bf23d8d2b8
- Added missing proto's and folding marks.
13 lines
406 B
PHP
13 lines
406 B
PHP
--TEST--
|
|
Bug #33563 (strtotime('+1 month',$abc) cant get right time)
|
|
--FILE--
|
|
<?php
|
|
date_default_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
|