Fix #62476: DateTime::createFromFormat z format incorrect wrt 29.02

While this is only a hard requirement as of PHP 8.0.10, without an
explicit year before the day-of-year, previous versions always assumed
on non leap year, as Derick pointed out in chat, so users need the
explicit year anyway for correct code.
This commit is contained in:
Christoph M. Becker 2021-10-01 15:33:54 +02:00
parent 485e0b4b44
commit a8f160fa97
No known key found for this signature in database
GPG key ID: D66C9593118BCCB6

View file

@ -86,7 +86,10 @@
</row>
<row>
<entry><literal>z</literal></entry>
<entry>The day of the year (starting from 0)</entry>
<entry>
The day of the year (starting from 0);
must be preceeded by <literal>Y</literal> or <literal>y</literal>.
</entry>
<entry><literal>0</literal> through <literal>365</literal></entry>
</row>
<row>