On Tue, 26 Jul 2005, Ilia Alshanetsky wrote:
> iliaa Tue Jul 26 18:29:31 2005 EDT
>
> Added files:
> /php-src/ext/date/tests bug33869.phpt
>
> Modified files:
> /php-src NEWS
> /php-src/ext/date/lib parse_date.c
> Log:
> Fixed bug #33869 (strtotime() problem with "+1days" format).
--TEST--
Bug #33869 (strtotime() doesn't parse "+1days" format)
--FILE--
<?php
date_default_timezone_set("UTC");
$tm = mktime(1,1,1,1,1,2005);
echo date('m/d/Y H:m:s', strtotime('+5days',$tm));
Could you please use the DATE_ISO8601 constant for the format in tests -
this way all tests' output looks the same - and the m/d/y format is too
ambigious. Besides that, you used "m" in the time too, for minutes, but
that's the "i" ("m" is month"). I changed it now for you.
regards,
Derick
>
>
--
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php