xref: /PHP-7.1/ext/date/tests/bug33563.phpt (revision bf23d8d2)
1--TEST--
2Bug #33563 (strtotime('+1 month',$abc) cant get right time)
3--FILE--
4<?php
5date_default_timezone_set("GMT");
6$strCurrDate = date('Y-m-d H:i:s',strtotime('2005-06-30 21:04:23'));
7$strMonAfter = date('Y-m-d H:i:s',strtotime('+1 month',strtotime($strCurrDate)));
8
9echo "strCurrDate:$strCurrDate strMonAfter:$strMonAfter";
10?>
11--EXPECT--
12strCurrDate:2005-06-30 21:04:23 strMonAfter:2005-07-30 21:04:23
13