php-src/ext/date/tests/bug33563.phpt
Derick Rethans bf23d8d2b8 - Renamed date_timezone_set/get() to date_default_timezone_set/get().
- Added missing proto's and folding marks.
2005-07-04 21:27:26 +00:00

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