[php-src] Issue #8012: DateTime last day of February fall down to January or March

From: Date: Mon, 31 Jan 2022 13:17:44 +0000
Subject: [php-src] Issue #8012: DateTime last day of February fall down to January or March
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-239372@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8012 Comment Author: alecpl createFromFormat() for !Ym sets day=1, time=00:00:00, while Ym takes current day and time. So, if it is e.g. 31-st of January, it leads to 31-st of February which then is "converted" to 3rd of March. I don't see a bug here. This is documented behavior.

« previous php.bugs (#239372) next »