mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
485e0b4b44
commit
a8f160fa97
1 changed files with 4 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue