blob: 9f4eb7b4d27ddde8c5f2fd9abef22f4fb73ef9d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
--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
|