svn: /phpdoc/en/trunk/reference/datetime/functions/ strtotime.xml
| From: | Christoph Michael Becker | Date: | Tue, 01 Sep 2015 23:52:22 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/datetime/functions/ strtotime.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-13678@lists.php.net to get a copy of this message | ||
cmb Tue, 01 Sep 2015 23:52:22 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=337698
Log:
clarified behavior of nn-nn-nn parsing (fixes #61314)
Bug: https://bugs.php.net/61314 (Verified) Cannot mix
European and 2 digit year
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 2015-09-01 22:59:30 UTC (rev 337697)
+++ phpdoc/en/trunk/reference/datetime/functions/strtotime.xml 2015-09-01 23:52:22 UTC (rev 337698)
@@ -216,6 +216,9 @@
American <literal>m/d/y</literal> is assumed; whereas if the separator is a
dash (<literal>-</literal>) or a dot (<literal>.</literal>), then the
European <literal>d-m-y</literal> format is assumed.
+ If, however, the year is given in a two digit format and the separator is a
+ dash (<literal>-</literal>, the date string is parsed as
+ <literal>y-m-d</literal>.
</para>
<para>
To avoid potential ambiguity, it's best to use ISO 8601