[php-src] Issue #13947: Break compatibility on date function 8.1+
| From: | eerison | Date: | Fri, 12 Apr 2024 09:32:07 +0000 |
| Subject: | [php-src] Issue #13947: Break compatibility on date function 8.1+ | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-246747@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/13947
Author: eerison
### Description
The following code:
```php
<?php
var_dump(date('y-m-d H:i:s', '2222222222'));
```
Resulted in this output:
```
string(17) "40-06-02 05:57:02"
```
But I expected this output instead:
```
string(17) "40-06-02 04:57:02"
```
Hello guys on
date function contains a backward incompatibility after **8.1+**
### PHP Version
PHP 8.1+
### Operating System
_No response_