[php-src] Issue #11136: PHP 8.2.5 shows wrong day in date

From: Date: Wed, 26 Apr 2023 12:00:01 +0000
Subject: [php-src] Issue #11136: PHP 8.2.5 shows wrong day in date
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-244274@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/11136 Author: juedan ### Description Dear developers, for testing my code on several PHP platforms I have installed three versions of it. Today I found a very interesting and weird thing. The following code shows surprisingly different results on the **day of the date**. ``` date_default_timezone_set('Europe/Berlin'); locale_set_default('de-DE'); $heute = new DateTime('now'); var_dump($heute): ``` PHP Version 8.2.5: ``` object(DateTime)#17 (3) { ["date"] => string(26) "2023-04-24 13:09:00.792457" ["timezone_type"] => int(3) ["timezone"] => string(13) "Europe/Berlin" } ``` PHP Version 8.1.18: ``` object(DateTime)#17 (3) { ["date"] => string(26) "2023-04-26 13:18:45.175232" ["timezone_type"] => int(3) ["timezone"] => string(13) "Europe/Berlin" } ``` PHP Version 7.4.33: ``` object(DateTime)#17 (3) { ["date"] => string(26) "2023-04-26 13:17:51.332491" ["timezone_type"] => int(3) ["timezone"] => string(13) "Europe/Berlin" } ``` I'm running these PHP versions on an Debian 5.10.162-1 (2023-01-21) x86_64 with Build Date Apr 14 2023 04:39:46. Best regards and many thanks for your answers in advance. ### PHP Version PHP 8.2.5 ### Operating System Debian 5.10.162-1

« previous php.bugs (#244274) next »