From a8f160fa977075f981c74bff2a68abb99c98f04d Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Fri, 1 Oct 2021 15:33:54 +0200 Subject: [PATCH] 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. --- reference/datetime/datetime/createfromformat.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reference/datetime/datetime/createfromformat.xml b/reference/datetime/datetime/createfromformat.xml index 11fb088db1..e46713cd04 100644 --- a/reference/datetime/datetime/createfromformat.xml +++ b/reference/datetime/datetime/createfromformat.xml @@ -86,7 +86,10 @@ z - The day of the year (starting from 0) + + The day of the year (starting from 0); + must be preceeded by Y or y. + 0 through 365