[php-src] Issue #15945: strtotime() malfunction with year 1959 and previous
| From: | rodiniaweb | Date: | Wed, 18 Sep 2024 08:53:26 +0000 |
| Subject: | [php-src] Issue #15945: strtotime() malfunction with year 1959 and previous | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-247823@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/15945
Author: rodiniaweb
### Description
Today is September 18th. The following code:
```php
<?php
date_default_timezone_set('Europe/Madrid');
echo date('Y-m-d',strtotime('1959'));
```
Resulted in this output:
```
2024-09-18
```
But I expected this output instead:
```
1959-09-18
```
If you use 1960 and following years, it works as expected.
### PHP Version
PHP 8.3.10
### Operating System
_No response_