DateTime->diff having issues with leap days
Aberta
- Linguagem predominante
- C++
- Estrelas
- 18.7k
- Forks
- 3.1k
- Merge médio
- 1h 47min
- PRs com merge (30d)
- 2
Descrição
### HHVM Version
3.24.2
### Standalone code, or other way to reproduce the problem
```php
diff($a)->y);
date_default_timezone_set('Europe/Amsterdam');
$d = new DateTime('2008-03-01');
$a = new DateTime('2018-03-01');
var_dump($d->diff($a)->y);
```
### Expected result
```
int(10)
int(10)
```
### Actual result
```
int(10)
int(9)
```
PHP bug report: https://bugs.php.net/bug.php?id=76032
Guia de contribuição
Avaliação
Esta issue ainda não foi avaliada.