Re: svn: /phpdoc/en/trunk/reference/datetime/functions/ strtotime.xml
| From: | Derick Rethans | Date: | Thu, 18 Feb 2010 14:32:42 +0000 |
| Subject: | Re: svn: /phpdoc/en/trunk/reference/datetime/functions/ strtotime.xml | ||
| References: | 1 | Groups: | php.doc.cvs |
| Request: | Send a blank email to doc-cvs+get-6104@lists.php.net to get a copy of this message | ||
On Thu, 18 Feb 2010, Daniel Egeberg wrote:
> degeberg Thu, 18 Feb 2010 14:25:56 +0000
>
> Revision:
> http://svn.php.net/viewvc?view=revision&revision=295237
>
> Log:
> Fixed bug #51081. Documented that '24:00' is unsupported prior to 5.3.0.
>
> Bug: http://bugs.php.net/51081 (Assigned)
> date("g:ia",strtotime("24:00")) returns 1:00am
>
> Changed paths:
> U phpdoc/en/trunk/reference/datetime/functions/strtotime.xml
>
> Modified: phpdoc/en/trunk/reference/datetime/functions/strtotime.xml
> ===================================================================
> --- phpdoc/en/trunk/reference/datetime/functions/strtotime.xml 2010-02-18 14:08:30 UTC (rev
> 295236)
> +++ phpdoc/en/trunk/reference/datetime/functions/strtotime.xml 2010-02-18 14:25:56 UTC (rev
> 295237)
> @@ -83,6 +83,14 @@
> </thead>
> <tbody>
> <row>
> + <entry>5.3.0</entry>
> + <entry>
> + Prior to PHP 5.3.0, <literal>24:00</literal> was not a valid format and
> + <function>strtotime</function> returned &false;. From 5.3.0 this is
> + equivalent to <literal>0:00</literal>.
That is not true. 2010-02-18 24:00 is the same as 2010-02-19 00:00 and
*not* 2010-02-18 00:00.
Derick
--
http://derickrethans.nl | http://xdebug.org
twitter: @derickr