Re: cvs: php-src / NEWS /ext/date/lib parse_date.c /ext/date/tests bug33869.phpt
| From: | Derick Rethans | Date: | Mon, 01 Aug 2005 07:38:27 +0000 |
| Subject: | Re: cvs: php-src / NEWS /ext/date/lib parse_date.c /ext/date/tests bug33869.phpt | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-33138@lists.php.net to get a copy of this message | ||
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